-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypedGroupedSelection.php
More file actions
38 lines (33 loc) · 951 Bytes
/
TypedGroupedSelection.php
File metadata and controls
38 lines (33 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
namespace Fykosak\NetteORM\Selection;
use Fykosak\NetteORM\Mapper;
use Fykosak\NetteORM\Model\Model;
use Nette\Caching\IStorage;
use Nette\Database\Conventions;
use Nette\Database\Explorer;
use Nette\Database\Table\GroupedSelection;
use Nette\Database\Table\Selection;
/**
* @phpstan-template-covariant TModel of Model
*/
class TypedGroupedSelection extends GroupedSelection
{
/** @phpstan-use TypedSelectionsTrait<TModel> */
use TypedSelectionsTrait;
/**
* @phpstan-param Selection<Model> $refTable
*/
public function __construct(
Mapper $mapper,
Explorer $explorer,
Conventions $conventions,
string $tableName,
string $column,
Selection $refTable,
?IStorage $cacheStorage = null
) {
parent::__construct($explorer, $conventions, $tableName, $column, $refTable, $cacheStorage);
$this->mapper = $mapper;
}
}