mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Cleanup code, improve typings
This commit is contained in:
17
common/models/EmailActivationQuery.php
Normal file
17
common/models/EmailActivationQuery.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user