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