resource() public static method

public static resource ( $value, $type = null, $message = '' )
Exemplo n.º 1
0
 /**
  * Creates the input.
  *
  * @param resource $stream A stream resource.
  */
 public function __construct($stream)
 {
     Assert::resource($stream, 'stream');
     $this->stream = $stream;
     // Not all streams are seekable
     @rewind($this->stream);
 }
Exemplo n.º 2
0
 /**
  * Creates the stream.
  *
  * @param resource $stream A stream resource.
  */
 public function __construct($stream)
 {
     Assert::resource($stream, 'stream');
     $this->stream = $stream;
 }