1 | <?php |
||
7 | abstract class Component |
||
8 | { |
||
9 | /** |
||
10 | * @var Grid |
||
11 | */ |
||
12 | protected $grid; |
||
13 | |||
14 | /** |
||
15 | * @return mixed |
||
16 | */ |
||
17 | abstract public function render(); |
||
18 | |||
19 | /** |
||
20 | * @return Grid |
||
21 | */ |
||
22 | public function getGrid() |
||
26 | |||
27 | /** |
||
28 | * @param Grid $grid |
||
29 | */ |
||
30 | public function setGrid(Grid $grid) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getName() |
||
42 | |||
43 | /** |
||
44 | * @param string $tag |
||
45 | * @param string $content |
||
46 | * @param array $attributes |
||
47 | * @return \Illuminate\Support\HtmlString |
||
48 | */ |
||
49 | protected function tag($tag, $content, array $attributes = []) |
||
53 | } |
||
54 |