public function get($name)
    {
        if (!isset($this->assets[$name])) {
            throw new \InvalidArgumentException(sprintf('There is no "%s" asset.', $name));
        }

        return $this->assets[$name];
    }
public function get($name)
    {
        if (!isset($this->assets[$name])) {
            throw new \InvalidArgumentException(sprintf('There is no "%s" asset.', $name));
        }

        return $this->assets[$name];
    }
public function get ( $ name ) { if ( ! isset ( $ this -> assets [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'There is no "%s" asset.' , $ name ) ) ; } return $ this -> assets [ $ name ] ; }
Gets an asset by name.

@param string $name The asset name

@return AssetInterface The asset

@throws \InvalidArgumentException If there is no asset by that name
Gets an asset by name .