private static function checkPaths($pathToFileDirectory, $pathToFile) { FileHelper::ensureIsReadable($pathToFile); FileHelper::ensureIsDirectory($pathToFileDirectory); FileHelper::ensureIsWritable($pathToFileDirectory); }
public function __construct($path) { FileHelper::ensureIsReadable($path); FileHelper::ensureIsDirectory($path); $this->directoryPath = $path; }