public function __call($name, $arguments) { $comandArgument = isset($arguments[0]) ? $arguments[0] : null; $lineCallback = isset($arguments[1]) ? $arguments[1] : null; $command = new Command($this->name, $this->getMixedArguments($name, $comandArgument)); $command->setSh($this->sh); $command->setLineCallback($lineCallback); return $command; }