1 | <?php namespace Algorit\Synchronizer\Request; |
||
7 | class Config { |
||
8 | |||
9 | /** |
||
10 | * The config array. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | public $config; |
||
15 | |||
16 | /** |
||
17 | * The aliases array. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | public $aliases; |
||
22 | |||
23 | /** |
||
24 | * The date config. |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | public $date; |
||
29 | |||
30 | /** |
||
31 | * The resource instance name. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | public $resourceInstance; |
||
36 | |||
37 | /** |
||
38 | * The entities config. |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $entities; |
||
43 | |||
44 | /** |
||
45 | * The filesystem instance. |
||
46 | * |
||
47 | * @var \Illuminate\Filesystem\Filesystem |
||
48 | */ |
||
49 | protected $files; |
||
50 | |||
51 | /** |
||
52 | * Create a new instance. |
||
53 | * |
||
54 | * @param \Illuminate\Filesystem\Filesystem $files |
||
55 | * @return void |
||
|
|||
56 | */ |
||
57 | public function __construct(Filesystem $files) |
||
61 | |||
62 | protected function load($path) |
||
69 | |||
70 | /** |
||
71 | * Setup the configuration. |
||
72 | * |
||
73 | * @param \Algorit\Synchronizer\Request\Contracts\SystemInterface $system |
||
74 | * @return \Algorit\Synchronizer\Request\Config |
||
75 | */ |
||
76 | public function setup(SystemInterface $system, $resource) |
||
103 | |||
104 | public function getConfig() |
||
108 | |||
109 | public function getAlias($name) |
||
113 | |||
114 | /** |
||
115 | * Get the entities. |
||
116 | * |
||
117 | * @param void |
||
118 | * @return array |
||
119 | */ |
||
120 | public function getEntities() |
||
124 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.