public function getFormula($name)
    {
        if (!$this->loaded) {
            $this->load();
        }

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

        return $this->formulae[$name];
    }
public function getFormula($name)
    {
        if (!$this->loaded) {
            $this->load();
        }

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

        return $this->formulae[$name];
    }
public function getFormula ( $ name ) { if ( ! $ this -> loaded ) { $ this -> load ( ) ; } if ( ! isset ( $ this -> formulae [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'There is no "%s" formula.' , $ name ) ) ; } return $ this -> formulae [ $ name ] ; }
Returns an asset's formula.

@param string $name An asset name

@return array The formula

@throws \InvalidArgumentException If there is no formula by that name
Returns an asset s formula .