예제 #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()));
 }