/** * Constructor * * @param string $file File path * @param int $options File options */ public function __construct($file, $options = self::FILE_CREATE) { parent::__construct($file); // Set the file options $this->setOptions($options); // Validate the file $this->validateWriterFile(); }
/** * Constructor * * @param string $file File path */ public function __construct($file) { parent::__construct($file); // Validate the file $this->validateReaderFile(); }