protected function commandsNamed(array $names)
    {
        return collect($this->commands)->filter(function ($command) use ($names) {
            return in_array($command->name, $names);
        });
    }
protected function commandsNamed(array $names)
    {
        return collect($this->commands)->filter(function ($command) use ($names) {
            return in_array($command->name, $names);
        });
    }
protected function commandsNamed ( array $ names ) { return collect ( $ this -> commands ) -> filter ( function ( $ command ) use ( $ names ) { return in_array ( $ command -> name , $ names ) ; } ) ; }
Get all of the commands matching the given names.

@param  array  $names
@return \Illuminate\Support\Collection
Get all of the commands matching the given names .