View.php 542 B

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