mirror of
https://github.com/elyby/accounts.git
synced 2024-11-19 11:43:07 +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]);
|
|
}
|
|
|
|
}
|