public function __construct(BytesIO $stream, $simple = false) { parent::__construct($stream); $this->classref = array(); $this->refer = $simple ? new FakeReaderRefer() : new RealReaderRefer(); }
function __construct($file, $debug = null) { parent::__construct($debug); if (($this->_file_handler = fopen($file, "r")) == false) { throw new \Exception("Error: Invalid file"); } }