40], [['client_id'], 'string', 'max' => 32], [['redirect_uri'], 'string', 'max' => 1000], [['scope'], 'string', 'max' => 2000] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'authorization_code' => 'Authorization Code', 'client_id' => 'Client ID', 'user_id' => 'User ID', 'redirect_uri' => 'Redirect Uri', 'expires' => 'Expires', 'scope' => 'Scope', ]; } /** * @return \yii\db\ActiveQuery */ public function getClient() { return $this->hasOne(OauthClients::className(), ['client_id' => 'client_id']); } }