mirror of
https://github.com/elyby/accounts.git
synced 2024-12-30 00:50:20 +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]);
|
||
|
}
|
||
|
|
||
|
}
|