src/Argument/Filter.php
protected function filterArguments($filters = [])
    {
        $arguments = $this->arguments;

        foreach ($filters as $filter) {
            $arguments = array_filter($arguments, [$this, $filter]);
        }

        if (in_array('hasPrefix', $filters)) {
            usort($arguments, [$this, 'compareByPrefix']);
        }

        return array_values($arguments);
    }
protected function filterArguments($filters = [])
    {
        $arguments = $this->arguments;

        foreach ($filters as $filter) {
            $arguments = array_filter($arguments, [$this, $filter]);
        }

        if (in_array('hasPrefix', $filters)) {
            usort($arguments, [$this, 'compareByPrefix']);
        }

        return array_values($arguments);
    }
protected function filterArguments ( $ filters = [ ] ) { $ arguments = $ this -> arguments ; foreach ( $ filters as $ filter ) { $ arguments = array_filter ( $ arguments , [ $ this , $ filter ] ) ; } if ( in_array ( 'hasPrefix' , $ filters ) ) { usort ( $ arguments , [ $ this , 'compareByPrefix' ] ) ; } return array_values ( $ arguments ) ; }
Filter defined arguments as to whether they are required or not

@param string[] $filters

@return Argument[]
Filter defined arguments as to whether they are required or not