['implicit', 'password', 'authorizationCode', 'clientCredentials'], 'refreshUrl' => 'string', 'authorizationUrl' => 'string', 'tokenUrl' => 'string', ]; /** * @inheritdoc */ public static $_parents = [ SecurityScheme::class, ]; /** @inheritdoc */ public function jsonSerialize() { if (is_array($this->scopes) && empty($this->scopes)) { $this->scopes = new \stdClass(); } return parent::jsonSerialize(); } }