| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class User extends BaseUser implements LoggableInterface |
||
| 7 | { |
||
| 8 | const ADMIN_ID = 1; |
||
| 9 | |||
| 10 | public function isDeleteAllowed() |
||
| 11 | { |
||
| 12 | return $this->id != self::ADMIN_ID; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | public function rules() |
||
| 24 | }], |
||
| 25 | ]); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getPassword() |
||
| 29 | { |
||
| 30 | return ''; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | public function attributeLabels() |
||
| 44 | ]; |
||
| 45 | } |
||
| 47 |