| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class OauthScopes extends \yii\db\ActiveRecord |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | 1 | public static function tableName(): string |
|
| 20 | { |
||
| 21 | 1 | return '{{%oauth_scopes}}'; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function rules(): array |
||
| 28 | { |
||
| 29 | return [ |
||
| 30 | [['scope', 'is_default'], 'required'], |
||
| 31 | [['is_default'], 'integer'], |
||
| 32 | [['scope'], 'string', 'max' => 2000] |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | public function attributeLabels(): array |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |