Issues (54)

src/Contracts/Page.php (5 issues)

Severity
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
Method \Astrotomic\Stancy\Contracts\Page::data() does not have @param annotation for its traversable parameter $data.
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
Method \Astrotomic\Stancy\Contracts\Page::toArray() does not have @return annotation for its traversable return value.
Loading history...
29
30
    public function jsonSerialize(): array;
0 ignored issues
show
Method \Astrotomic\Stancy\Contracts\Page::jsonSerialize() does not have @return annotation for its traversable return value.
Loading history...
31
32
    public function toJson($options = 0): string;
0 ignored issues
show
Method \Astrotomic\Stancy\Contracts\Page::toJson() does not have parameter type hint nor @param annotation for its parameter $options.
Loading history...
33
34
    public function toResponse($request): Response;
0 ignored issues
show
Method \Astrotomic\Stancy\Contracts\Page::toResponse() does not have parameter type hint nor @param annotation for its parameter $request.
Loading history...
35
36
    public function toFeedItem(): FeedItem;
37
}
38