| 1 | <?php |
||
| 10 | class Address extends Prefix |
||
| 11 | { |
||
| 12 | use ModelTrait; |
||
| 13 | |||
| 14 | public static function tableName() |
||
| 15 | { |
||
| 16 | return 'prefix'; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** {@inheritdoc} */ |
||
| 20 | public function rules() |
||
| 21 | { |
||
| 22 | return parent::rules(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** {@inheritdoc} */ |
||
| 26 | public function attributeLabels() |
||
| 27 | { |
||
| 28 | return array_merge(parent::attributeLabels(), [ |
||
| 29 | 'ip' => Yii::t('hipanel.hosting.ipam', 'Address'), |
||
| 30 | 'type' => Yii::t('hipanel.hosting.ipam', 'Status'), |
||
| 31 | ]); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | * @return QueryInterface |
||
| 37 | */ |
||
| 38 | public static function find(array $options = []): QueryInterface |
||
| 44 | } |
||
| 45 |