1 | <?php |
||
9 | class Component |
||
10 | { |
||
11 | /** @var BladeX */ |
||
12 | protected $bladeX; |
||
13 | |||
14 | /** @var string */ |
||
15 | public $view; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * @internal |
||
20 | * @see Component::getTag() |
||
21 | */ |
||
22 | public $tag; |
||
23 | |||
24 | /** @var string */ |
||
25 | public $viewModel; |
||
26 | |||
27 | /** @var string */ |
||
28 | protected $prefix; |
||
29 | |||
30 | /** @var bool */ |
||
31 | protected $withNamespace; |
||
32 | |||
33 | public static function make(string $view, string $tag = '', string $prefix = '', bool $withNamespace = true) |
||
37 | |||
38 | public function __construct(string $view, string $tag = '', string $prefix = '', bool $withNamespace = true) |
||
50 | |||
51 | public function tag(string $tag) |
||
57 | |||
58 | public function prefix(string $prefix) |
||
64 | |||
65 | public function withoutNamespace() |
||
71 | |||
72 | public function viewModel(string $viewModel) |
||
86 | |||
87 | public function getTag(): string |
||
95 | |||
96 | protected function determineDefaultTag(): string |
||
115 | } |
||
116 |