1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,31 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Contracts\View; |
|
4 |
- |
|
5 |
-use Illuminate\Contracts\Support\Renderable; |
|
6 |
- |
|
7 |
-interface View extends Renderable |
|
8 |
-{ |
|
9 |
- /** |
|
10 |
- * Get the name of the view. |
|
11 |
- * |
|
12 |
- * @return string |
|
13 |
- */ |
|
14 |
- public function name(); |
|
15 |
- |
|
16 |
- /** |
|
17 |
- * Add a piece of data to the view. |
|
18 |
- * |
|
19 |
- * @param string|array $key |
|
20 |
- * @param mixed $value |
|
21 |
- * @return $this |
|
22 |
- */ |
|
23 |
- public function with($key, $value = null); |
|
24 |
- |
|
25 |
- /** |
|
26 |
- * Get the array of view data. |
|
27 |
- * |
|
28 |
- * @return array |
|
29 |
- */ |
|
30 |
- public function getData(); |
|
31 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Contracts\View; |
|
4 |
+ |
|
5 |
+use Illuminate\Contracts\Support\Renderable; |
|
6 |
+ |
|
7 |
+interface View extends Renderable |
|
8 |
+{ |
|
9 |
+ /** |
|
10 |
+ * Get the name of the view. |
|
11 |
+ * |
|
12 |
+ * @return string |
|
13 |
+ */ |
|
14 |
+ public function name(); |
|
15 |
+ |
|
16 |
+ /** |
|
17 |
+ * Add a piece of data to the view. |
|
18 |
+ * |
|
19 |
+ * @param string|array $key |
|
20 |
+ * @param mixed $value |
|
21 |
+ * @return $this |
|
22 |
+ */ |
|
23 |
+ public function with($key, $value = null); |
|
24 |
+ |
|
25 |
+ /** |
|
26 |
+ * Get the array of view data. |
|
27 |
+ * |
|
28 |
+ * @return array |
|
29 |
+ */ |
|
30 |
+ public function getData(); |
|
31 |
+} |