Jarves\File\FileInfoInterface::toArray PHP Method

toArray() public method

public toArray ( ) : array
return array
    public function toArray();

Usage Example

Beispiel #1
0
 public function createFromPathInfo(FileInfoInterface $fileInfo)
 {
     $array = $fileInfo->toArray();
     $file = new File();
     $file->fromArray($array, TableMap::TYPE_CAMELNAME);
     $file->setHash($this->hash($file->getPath()));
     $file->save();
     return $file;
 }