1 | <?php |
||
37 | abstract class Display implements DisplayInterface |
||
38 | { |
||
39 | use HtmlAttributes, Assets, Renderable; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $modelClass; |
||
45 | |||
46 | /** |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $with = []; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $title; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $repositoryClass = RepositoryInterface::class; |
||
60 | |||
61 | /** |
||
62 | * @var RepositoryInterface |
||
63 | */ |
||
64 | protected $repository; |
||
65 | |||
66 | /** |
||
67 | * @var DisplayExtensionInterface[]|Collection |
||
68 | */ |
||
69 | protected $extensions; |
||
70 | |||
71 | /** |
||
72 | * @var bool |
||
73 | */ |
||
74 | protected $initialized = false; |
||
75 | |||
76 | /** |
||
77 | * Display constructor. |
||
78 | */ |
||
79 | public function __construct() |
||
90 | |||
91 | /** |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function isInitialized() |
||
98 | |||
99 | /** |
||
100 | * @param string $name |
||
101 | * @param DisplayExtensionInterface $extension |
||
102 | * |
||
103 | * @return DisplayExtensionInterface |
||
104 | */ |
||
105 | public function extend($name, DisplayExtensionInterface $extension) |
||
113 | |||
114 | /** |
||
115 | * @return Collection|\SleepingOwl\Admin\Contracts\Display\DisplayExtensionInterface[] |
||
116 | */ |
||
117 | public function getExtensions() |
||
121 | |||
122 | /** |
||
123 | * @return RepositoryInterface |
||
124 | */ |
||
125 | public function getRepository() |
||
129 | |||
130 | /** |
||
131 | * @param $repositoryClass |
||
132 | * |
||
133 | * @return $this |
||
134 | */ |
||
135 | public function setRepositoryClass($repositoryClass) |
||
141 | |||
142 | /** |
||
143 | * @param array|string[] ...$relations |
||
144 | * |
||
145 | * @return $this |
||
146 | */ |
||
147 | public function with($relations) |
||
153 | |||
154 | /** |
||
155 | * @return void |
||
156 | */ |
||
157 | public function initialize() |
||
176 | |||
177 | /** |
||
178 | * @param string $modelClass |
||
179 | * |
||
180 | * @return $this |
||
181 | */ |
||
182 | public function setModelClass($modelClass) |
||
190 | |||
191 | /** |
||
192 | * @return string |
||
193 | */ |
||
194 | public function getTitle() |
||
208 | |||
209 | /** |
||
210 | * @param string $title |
||
211 | * |
||
212 | * @return $this |
||
213 | */ |
||
214 | public function setTitle($title) |
||
220 | |||
221 | /** |
||
222 | * Get the instance as an array. |
||
223 | * |
||
224 | * @return array |
||
225 | */ |
||
226 | public function toArray() |
||
234 | |||
235 | /** |
||
236 | * Get the evaluated contents of the object. |
||
237 | * |
||
238 | * @return string |
||
239 | */ |
||
240 | public function render() |
||
269 | |||
270 | /** |
||
271 | * @param string $name |
||
272 | * @param array $arguments |
||
273 | * |
||
274 | * @return DisplayExtensionInterface |
||
275 | */ |
||
276 | public function __call($name, $arguments) |
||
292 | |||
293 | /** |
||
294 | * @return ModelConfigurationInterface |
||
295 | */ |
||
296 | protected function getModelConfiguration() |
||
300 | |||
301 | /** |
||
302 | * @return \Illuminate\Foundation\Application|mixed |
||
303 | * @throws \Exception |
||
304 | */ |
||
305 | protected function makeRepository() |
||
315 | } |
||
316 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.