mirror of
https://github.com/elyby/accounts.git
synced 2024-12-11 16:09:25 +05:30
18 lines
280 B
PHP
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]);
|
||
|
}
|
||
|
|
||
|
}
|