src/Compiler/Compiler.php
public static function parameters(array $items)
    {
        $parameters = array();
        $items = array_filter(Arr::flatten($items));

        foreach ($items as $item) {
            $itemParams = $item->getParameters();

            if ($itemParams !== null) {
                $parameters []= $itemParams;
            }
        }

        return Arr::flatten($parameters);
    }
public static function parameters(array $items)
    {
        $parameters = array();
        $items = array_filter(Arr::flatten($items));

        foreach ($items as $item) {
            $itemParams = $item->getParameters();

            if ($itemParams !== null) {
                $parameters []= $itemParams;
            }
        }

        return Arr::flatten($parameters);
    }
public static function parameters ( array $ items ) { $ parameters = array ( ) ; $ items = array_filter ( Arr :: flatten ( $ items ) ) ; foreach ( $ items as $ item ) { $ itemParams = $ item -> getParameters ( ) ; if ( $ itemParams !== null ) { $ parameters [ ] = $ itemParams ; } } return Arr :: flatten ( $ parameters ) ; }
Get parameters from Parametrised objects
@param  array  $items
@return array
Get parameters from Parametrised objects