state = $state; $this->enabledInProduction = $enabledInProduction; } /** * Is Swagger enabled * * @return bool */ public function isEnabled(): bool { return $this->state->getMode() === State::MODE_DEVELOPER || $this->enabledInProduction; } }