blob: 4b0b7f9034f21abeb449966a56edca89098edff0 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\View;
4
5use Illuminate\Contracts\Support\Renderable;
6
7interface 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}