1 | <?php |
||
2 | |||
3 | namespace Astrotomic\Stancy\Contracts; |
||
4 | |||
5 | use Illuminate\Contracts\Support\Arrayable; |
||
6 | use Illuminate\Contracts\Support\Htmlable; |
||
7 | use Illuminate\Contracts\Support\Jsonable; |
||
8 | use Illuminate\Contracts\Support\Renderable; |
||
9 | use Illuminate\Contracts\Support\Responsable; |
||
10 | use Illuminate\Contracts\View\View; |
||
11 | use JsonSerializable; |
||
12 | use Spatie\Feed\Feedable; |
||
13 | use Spatie\Feed\FeedItem; |
||
14 | use Symfony\Component\HttpFoundation\Response; |
||
15 | |||
16 | interface Page extends Htmlable, Renderable, Responsable, Arrayable, Jsonable, JsonSerializable, Feedable, Sitemapable, Routable |
||
17 | { |
||
18 | public function page(?string $page): self; |
||
19 | |||
20 | public function data(array $data): self; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
21 | |||
22 | public function view(?string $view): self; |
||
23 | |||
24 | public function render(): View; |
||
25 | |||
26 | public function toHtml(): string; |
||
27 | |||
28 | public function toArray(): array; |
||
0 ignored issues
–
show
|
|||
29 | |||
30 | public function jsonSerialize(): array; |
||
0 ignored issues
–
show
|
|||
31 | |||
32 | public function toJson($options = 0): string; |
||
0 ignored issues
–
show
|
|||
33 | |||
34 | public function toResponse($request): Response; |
||
0 ignored issues
–
show
|
|||
35 | |||
36 | public function toFeedItem(): FeedItem; |
||
37 | } |
||
38 |