示例#1
0
 /**
  * {@inheritdoc}
  */
 public function toArray($is_update = false)
 {
     $returnVal = parent::toArray($is_update);
     if (!$is_update) {
         $returnVal['grantType'] = $this->grantType;
     }
     $returnVal += array('authorizationUrl' => $this->authorizationUrl, 'authorizationVerb' => $this->authorizationVerb, 'accessTokenUrl' => $this->accessTokenUrl, 'accessTokenParamName' => $this->accessTokenParamName, 'in' => $this->in, 'clientAuthenticationMethod' => $this->clientAuthenticationMethod, 'scopes' => $this->scopes);
     return $returnVal;
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function toArray($is_update = false)
 {
     return parent::toArray($is_update) + array('paramName' => $this->paramName, 'in' => $this->in);
 }