/** * Конструктор проверяет чтобы имя файла было не пусто */ public function __construct($path = null, $absPath = false) { if (is_null($path) || $path == '') { throw new FileSystemException('No path or file name given for File constructor'); } parent::__construct($path, $absPath); }