public function evaluateArgs(array $args) : void
    {
        array_shift($args);

        if (count($args) < 2) {
            $this->out->red("Not enough arguments: expects 2, got ".(count($args) - 1).".");
            return;
        }

        $this->setName($args[0]);
        $this->setLocation($args[1]);
        if (isset($args[2])) {
            $this->additionalArgs(array_slice($args, 2, count($args)));
        }

        return;
    }
public function evaluateArgs(array $args) : void
    {
        array_shift($args);

        if (count($args) < 2) {
            $this->out->red("Not enough arguments: expects 2, got ".(count($args) - 1).".");
            return;
        }

        $this->setName($args[0]);
        $this->setLocation($args[1]);
        if (isset($args[2])) {
            $this->additionalArgs(array_slice($args, 2, count($args)));
        }

        return;
    }
public function evaluateArgs ( array $ args ) : void { array_shift ( $ args ) ; if ( count ( $ args ) < 2 ) { $ this -> out -> red ( "Not enough arguments: expects 2, got " . ( count ( $ args ) - 1 ) . "." ) ; return ; } $ this -> setName ( $ args [ 0 ] ) ; $ this -> setLocation ( $ args [ 1 ] ) ; if ( isset ( $ args [ 2 ] ) ) { $ this -> additionalArgs ( array_slice ( $ args , 2 , count ( $ args ) ) ) ; } return ; }
Take in an array of args and evalutate them

@param array $args
@return void
Take in an array of args and evalutate them