1 | <?php |
||
10 | class View |
||
11 | { |
||
12 | /** |
||
13 | * @var \Illuminate\View\View |
||
14 | */ |
||
15 | public $layout; |
||
16 | |||
17 | /** |
||
18 | * @var Factory |
||
19 | */ |
||
20 | public $view; |
||
21 | |||
22 | /** |
||
23 | * @var Layout |
||
24 | */ |
||
25 | protected $viewLayout; |
||
26 | |||
27 | /** |
||
28 | * @var Path |
||
29 | */ |
||
30 | protected $viewPath; |
||
31 | |||
32 | /** |
||
33 | * @param Layout $viewLayout |
||
34 | * @param Path $viewPath |
||
35 | * @param Factory $view |
||
36 | */ |
||
37 | public function __construct(Layout $viewLayout, Path $viewPath, Factory $view) |
||
43 | |||
44 | /** |
||
45 | * @param array $layoutOptions |
||
46 | * @param null|string $view |
||
47 | */ |
||
48 | public function setUp($layoutOptions, $view = null) |
||
53 | |||
54 | /** |
||
55 | * Check if a view exists. |
||
56 | * |
||
57 | * @param string $view |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function exists($view) |
||
65 | |||
66 | /** |
||
67 | * Get the current layout. |
||
68 | * |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function getLayout() |
||
75 | |||
76 | /** |
||
77 | * If a method is not defined, try to find it's view. |
||
78 | * |
||
79 | * @param array $parameters |
||
80 | * |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function missingMethod($parameters) |
||
91 | |||
92 | /** |
||
93 | * Set a custom layout for a page. |
||
94 | * |
||
95 | * @param string $view |
||
96 | */ |
||
97 | public function setViewLayout($view) |
||
102 | |||
103 | /** |
||
104 | * Override the automatically resolved view. |
||
105 | * |
||
106 | * @param string $view |
||
107 | * |
||
108 | * @return $this |
||
109 | */ |
||
110 | public function setViewPath($view) |
||
116 | |||
117 | /** |
||
118 | * Share data with the view. |
||
119 | * |
||
120 | * @param $key |
||
121 | * @param $value |
||
122 | * |
||
123 | * @return $this |
||
124 | */ |
||
125 | public function addData($key, $value) |
||
131 | |||
132 | /** |
||
133 | * Return the dot notation view the resolver determined. |
||
134 | * |
||
135 | * @return mixed |
||
136 | */ |
||
137 | public function getPath() |
||
141 | |||
142 | /** |
||
143 | * Return the details of the view resolution for troubleshooting. |
||
144 | * |
||
145 | * @return mixed |
||
146 | */ |
||
147 | public function debug() |
||
151 | |||
152 | /** |
||
153 | * Pass the view resolution details to the debugbar collector. |
||
154 | * |
||
155 | * @param ViewModel $viewModel |
||
156 | */ |
||
157 | public function collectDetails($viewModel) |
||
167 | } |
||
168 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..