App\Traits\Uploadable::getFileProperties PHP Метод

getFileProperties() публичный Метод

Assumes attributes 'hash' and 'ext' of the object by default.
public getFileProperties ( )
    public function getFileProperties()
    {
        if (present($this->hash) === false || present($this->ext) === false) {
            return;
        }
        return ['hash' => $this->hash, 'ext' => $this->ext];
    }