/** * Constructor... * * @param \r8\FileSys\File $file The file being opened */ public function __construct(\r8\FileSys\File $file) { $file->requirePath(); if (!$file->isReadable()) { throw new \r8\Exception\FileSystem\Permissions($file->getPath(), "File is not readable"); } parent::__construct($file->getPath()); }
/** * Constructor... */ public function __construct() { parent::__construct("php://stdin"); }