| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ActiveDataProvider extends \yii\data\ActiveDataProvider |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ActiveQuery the query that is used to fetch data models and [[totalCount]] |
||
| 17 | * if it is not explicitly set |
||
| 18 | */ |
||
| 19 | public $query; |
||
| 20 | |||
| 21 | public bool $useRealCount = false; |
||
| 22 | |||
| 23 | public function enableCount(): void |
||
| 24 | { |
||
| 25 | $this->useRealCount = true; |
||
| 26 | } |
||
| 27 | |||
| 28 | protected function prepareTotalCount() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |