public function __construct($stream) { if (is_string($stream)) { $this->_string = $stream; } else { $this->_steam = $stream; } }