/** * Get the name for the lock. * * @param InputInterface $input * * @return string */ public function getLockName(InputInterface $input) { if (is_string($this->lockName)) { return $this->lockName; } if ($this->lockName instanceof LockHandler) { return 'UNKNOWN'; } if ($this->decoratedCommand instanceof SpecifiesLockName) { return $this->decoratedCommand->getLockName($input); } return $this->decoratedCommand->getName(); }