File: src/Adapter/Generic/Adapter.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  sapient  >  src/Adapter/Generic/Adapter.php  >  Download  
File: src/Adapter/Generic/Adapter.php
Role: Class source
Content type: text/plain
Description: Class source
Class: sapient
Add a security layer to server to server requests
Author: By
Last change: Move convenience method definitions outside of AdapterInterface.
Date: 3 years ago
Size: 572 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Sapient\Adapter\Generic;

use
ParagonIE\Sapient\Adapter\AdapterInterface;
use
Psr\Http\Message\StreamInterface;

/**
 * Class Guzzle
 * @package ParagonIE\Sapient\Adapter
 */
class Adapter implements AdapterInterface
{
   
/**
     * Adapter-specific way of converting a string into a StreamInterface
     *
     * @param string $input
     * @return StreamInterface
     * @throws \Error
     */
   
public function stringToStream(string $input): StreamInterface
   
{
        return
Stream::fromString($input);
    }
}


For more information send a message to info at phpclasses dot org.