commandName) { throw new CommandNotFoundException("Wrong command fetched. Expected '$this->commandName' - got '$name'"); } return new TestLoaderCommand(); } public function has(string $name): bool { return $name === $this->commandName; } public function getNames(): array { return [$this->commandName]; } }