| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class SiteView extends Model |
||
| 19 | { |
||
| 20 | // Properties |
||
| 21 | // ========================================================================= |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int ID |
||
| 25 | */ |
||
| 26 | public $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int Site ID |
||
| 30 | */ |
||
| 31 | public $siteId; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int View ID |
||
| 35 | */ |
||
| 36 | public $viewId; |
||
| 37 | |||
| 38 | // Public Methods |
||
| 39 | // ========================================================================= |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritdoc |
||
| 43 | */ |
||
| 44 | public function rules() |
||
| 45 | { |
||
| 46 | $rules = [ |
||
| 47 | [['id'], 'number', 'integerOnly' => true] |
||
| 48 | ]; |
||
| 49 | |||
| 50 | return $rules; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return View|null |
||
| 55 | * @throws \yii\base\InvalidConfigException |
||
| 56 | */ |
||
| 57 | public function getView() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |