Jarves\Storage\FileStorage::getItem PHP Метод

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

{@inheritDoc}
public getItem ( $primaryKey, $options = null )
    public function getItem($primaryKey, $options = null)
    {
        if (is_array($primaryKey)) {
            $path = $this->getPathFromPK($primaryKey);
        } else {
            $path = $primaryKey ?: '/';
        }
        if (!$path) {
            return null;
        }
        try {
            $item = $this->webFilesystem->getFile($path);
        } catch (FileNotFoundException $e) {
            return null;
        }
        if ($item) {
            return $item->toArray();
        }
    }