Jarves\File\FileInfo::toArray PHP Méthode

toArray() public méthode

public toArray ( ) : array
Résultat array
    public function toArray()
    {
        return ['name' => $this->getName() . ($this->getName() !== '/' && $this->getType() == FileInfo::DIR ? '/' : ''), 'path' => $this->getPath(), 'type' => $this->getType(), 'size' => $this->getSize(), 'extension' => $this->getExtension(), 'mimeType' => $this->getMimeType(), 'createdTime' => $this->getCreatedTime(), 'modifiedTime' => $this->getModifiedTime()];
    }