setName('foo:lock'); } protected function execute(InputInterface $input, OutputInterface $output): int { if (!$this->lock()) { return 1; } $this->release(); return 2; } }