public function __construct(NewCommand $command, $name) { $this->name = $name; $this->command = $command; }