/** * @inheritDoc */ public function setFileContent(FileKey $fileKey, $content) { return file_put_contents($fileKey->getFullPath(), $content); }
/** * @return string */ public function getExtension() { return $this->key->getExtension(); }
/** * @param string $fullPath * * @return File */ public static function getFile($fullPath) { $fileKey = new FileKey($fullPath); return new File($fileKey, static::getDirectory($fileKey->getDir())); }