for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hipanel\modules\hosting\models;
use hipanel\base\ModelTrait;
use hipanel\modules\hosting\models\query\AddressQuery;
use hipanel\modules\hosting\models\query\PrefixQuery;
use Yii;
use yii\db\QueryInterface;
class Address extends Prefix
{
use ModelTrait;
public static function tableName()
return 'prefix';
}
/** {@inheritdoc} */
public function rules()
return parent::rules();
public function attributeLabels()
return array_merge(parent::attributeLabels(), [
'ip' => Yii::t('hipanel.hosting.ipam', 'Address'),
]);
/**
* {@inheritdoc}
* @return PrefixQuery
*/
public static function find(array $options = []): QueryInterface
return new AddressQuery(get_called_class(), [
'options' => $options,