Source of file Stream.php

Size: 0,562 Bytes - Last Modified: 2018-11-03T09:50:48-04:00

G:/AdobeConnectClient/src/Connection/Curl/Stream.php

1234567891011121314151617181920212223242526272829303132333435
<?php

namespace AdobeConnectClient\Connection\Curl;

use AdobeConnectClient\Connection\StreamInterface;

/**
 * Stream for a cURL Connection.
 */
class Stream implements StreamInterface
{
    /**
     * @var string
     */
    protected $content = '';

    /**
     * Create the Stream
     *
     * @param string $content
     */
    public function __construct($content)
    {
        $this->content = is_string($content) ? $content : '';
    }

    /**
     * @inheritdoc
     */
    public function __toString()
    {
        return $this->content;
    }
}