1 | <?php |
||
15 | class GridFactory |
||
16 | { |
||
17 | private $agentFinder; |
||
18 | private $metadataFactory; |
||
19 | private $cellFactory; |
||
20 | private $filterFactory; |
||
21 | private $actionPerformer; |
||
22 | |||
23 | public function __construct( |
||
24 | AgentFinder $agentFinder, |
||
25 | MetadataFactory $metadataFactory, |
||
26 | GridViewFactory $gridViewFactory, |
||
27 | ActionPerformer $actionPerformer |
||
28 | ) { |
||
29 | $this->agentFinder = $agentFinder; |
||
30 | $this->metadataFactory = $metadataFactory; |
||
31 | $this->gridViewFactory = $gridViewFactory; |
||
|
|||
32 | $this->actionPerformer = $actionPerformer; |
||
33 | } |
||
34 | |||
35 | public function loadGrid(string $classFqn, array $context): Grid |
||
47 | |||
48 | private function doLoadGrid(GridContext $context): Grid |
||
66 | |||
67 | private function resolveGridMetadata(array $grids, string $variant = null) |
||
88 | } |
||
89 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: