Command
setCode(callable $code)
Sets the code to execute when running this command. If this method is used, it overrides the code defined in the execute() method.
Parameters callable $code A callable(InputInterface $input, OutputInterface $output) Return Value Command The current instance Exceptions InvalidArgumentException See also execute()