| 1 | <?php |
||
| 16 | class User extends \yii\web\User |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string the seller login |
||
| 20 | */ |
||
| 21 | public $seller; |
||
| 22 | |||
| 23 | public function not($key) |
||
| 32 | |||
| 33 | public function is($key) |
||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | * XXX fixes redirect loop when identity is set but the object is empty |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | public function getIsGuest() |
||
| 51 | } |
||
| 52 |
If an expression can have both
false, andnullas possible values. It is generally a good practice to always use strict comparison to clearly distinguish between those two values.