src/Filesystem/Filesystem.php
protected function getMetadataByName(array $object, $key)
    {
        $method = 'get' . \ucfirst($key);

        if (!\method_exists($this, $method)) {
            throw new \InvalidArgumentException('Could not get meta-data for key: ' . $key);
        }

        $object[$key] = $this->{$method}($object['path']);

        return $object;
    }
protected function getMetadataByName(array $object, $key)
    {
        $method = 'get' . \ucfirst($key);

        if (!\method_exists($this, $method)) {
            throw new \InvalidArgumentException('Could not get meta-data for key: ' . $key);
        }

        $object[$key] = $this->{$method}($object['path']);

        return $object;
    }
protected function getMetadataByName ( array $ object , $ key ) { $ method = 'get' . \ ucfirst ( $ key ) ; if ( ! \ method_exists ( $ this , $ method ) ) { throw new \ InvalidArgumentException ( 'Could not get meta-data for key: ' . $ key ) ; } $ object [ $ key ] = $ this -> { $ method } ( $ object [ 'path' ] ) ; return $ object ; }
Get a meta-data value by key name.

@param array  $object
@param string $key

@return array
Get a meta - data value by key name .