-
Notifications
You must be signed in to change notification settings - Fork 0
/
Context.php
52 lines (43 loc) · 1.03 KB
/
Context.php
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
declare(strict_types=1);
/**
* This file is part of MineAdmin.
*
* @link https://www.mineadmin.com
* @document https://doc.mineadmin.com
* @contact [email protected]
* @license https://github.com/mineadmin/MineAdmin/blob/master/LICENSE
*/
namespace Mine\GeneratorCrud;
use Hyperf\Collection\Collection;
use Mine\GeneratorCrud\Entity\TableEntity;
final class Context
{
public function __construct(
private Collection $config,
private Collection $processors,
private Collection $extra,
private TableEntity $table,
private Collection $entities
) {}
public function getConfig(): Collection
{
return $this->config;
}
public function getTable(): TableEntity
{
return $this->table;
}
public function getExtra(): Collection
{
return $this->extra;
}
public function getProcessors(): Collection
{
return $this->processors;
}
public function getEntities(): Collection
{
return $this->entities;
}
}