1 | <?php |
||
44 | class DatabaseTimestamp extends Command |
||
45 | { |
||
46 | /** |
||
47 | * Constructor. |
||
48 | * |
||
49 | * @param string|null $name The name of the command; passing null means it must be set in configure() |
||
50 | * |
||
51 | * @throws \LogicException When the command name is empty |
||
52 | */ |
||
53 | public function __construct(string $name = null) |
||
57 | /** @noinspection PhpMissingParentCallCommonInspection */ |
||
58 | /** |
||
59 | * Executes the current command. |
||
60 | * |
||
61 | * This method is not abstract because you can use this class |
||
62 | * as a concrete class. In this case, instead of defining the |
||
63 | * execute() method, you set the code to execute by passing |
||
64 | * a Closure to the setCode() method. |
||
65 | * |
||
66 | * @param InputInterface $input An InputInterface instance |
||
67 | * @param OutputInterface $output An OutputInterface instance |
||
68 | * |
||
69 | * @return null|int null or 0 if everything went fine, or an error code |
||
70 | * |
||
71 | * @see setCode() |
||
72 | */ |
||
73 | public function execute(InputInterface $input, OutputInterface $output): int |
||
79 | } |
||
80 |