for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace roaresearch\yii2\oauth2server\models;
use Yii;
use yii\db\{ActiveQuery, ActiveRecord};
/**
* This is the model class for table "oauth_scopes".
*
* @property string $scope
* @property integer $is_default
*/
class OauthScopes extends \yii\db\ActiveRecord
{
* @inheritdoc
public static function tableName(): string
return '{{%oauth_scopes}}';
}
public function rules(): array
return [
[['scope', 'is_default'], 'required'],
[['is_default'], 'integer'],
[['scope'], 'string', 'max' => 2000]
];
public function attributeLabels(): array
'scope' => 'Scope',
'is_default' => 'Is Default',