accounts/common/models/EmailActivationQuery.php
2019-12-13 22:27:13 +03:00

18 lines
280 B
PHP

<?php
declare(strict_types=1);
namespace common\models;
use yii\db\ActiveQuery;
/**
* @see EmailActivation
*/
class EmailActivationQuery extends ActiveQuery {
public function withType(int ...$typeId): self {
return $this->andWhere(['type' => $typeId]);
}
}