1 | <?php |
||
5 | class AdminResource |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $name; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $configuration; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $entityClass; |
||
21 | |||
22 | /** |
||
23 | * Resource constructor. |
||
24 | * |
||
25 | * @param string $name |
||
26 | * @param array $configuration |
||
27 | */ |
||
28 | public function __construct(string $name, array $configuration) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getName(): string |
||
42 | |||
43 | /** |
||
44 | * @return array |
||
45 | */ |
||
46 | public function getConfiguration(): array |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getEntityClass() : string |
||
58 | } |
||
59 |