src/AssetCollection.php
public function get($name)
    {
        if (!isset($this->indexed[$name])) {
            return null;
        }
        if (empty($this->indexed[$name])) {
            $this->indexed[$name] = $this->factory->target($name);
        }
        return $this->indexed[$name];
    }
public function get($name)
    {
        if (!isset($this->indexed[$name])) {
            return null;
        }
        if (empty($this->indexed[$name])) {
            $this->indexed[$name] = $this->factory->target($name);
        }
        return $this->indexed[$name];
    }
public function get ( $ name ) { if ( ! isset ( $ this -> indexed [ $ name ] ) ) { return null ; } if ( empty ( $ this -> indexed [ $ name ] ) ) { $ this -> indexed [ $ name ] = $ this -> factory -> target ( $ name ) ; } return $ this -> indexed [ $ name ] ; }
Get an asset from the collection

@param string $name The name of the asset you want.
@return null|AssetTarget Either null or the asset target.
Get an asset from the collection