| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class RrdSearch extends Rrd |
||
| 17 | { |
||
| 18 | use SearchModelTrait { |
||
| 19 | searchAttributes as private; |
||
| 20 | rules as private; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function rules() |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | [['id'], 'required'], |
||
| 27 | [['id', 'width', 'shift'], 'integer'], |
||
| 28 | [['period'], 'number'], |
||
| 29 | [['graph'], 'safe'], |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function formName() |
||
| 34 | { |
||
| 35 | return ''; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function searchAttributes() |
||
| 42 | { |
||
| 43 | return [ |
||
| 44 | 'id', |
||
| 45 | 'period', |
||
| 46 | 'width', |
||
| 47 | 'shift', |
||
| 48 | 'graph', |
||
| 49 | ]; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function attributeLabels() |
||
| 59 | ]; |
||
| 60 | } |
||
| 61 | } |
||
| 62 |