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