public function get()
    {
        foreach ($this->_commands as $command) {
            $location = $this->_commandLocator->locate(basename($command));
            if ($location !== null) {
                return $location;
            }
        }

        return null;
    }
public function get()
    {
        foreach ($this->_commands as $command) {
            $location = $this->_commandLocator->locate(basename($command));
            if ($location !== null) {
                return $location;
            }
        }

        return null;
    }
public function get ( ) { foreach ( $ this -> _commands as $ command ) { $ location = $ this -> _commandLocator -> locate ( basename ( $ command ) ) ; if ( $ location !== null ) { return $ location ; } } return null ; }
Returns the path to the first command found in the list.

@return string|null The located command, or null if none could be found.
Returns the path to the first command found in the list .