Issues (54)

src/Contracts/Page.php (2 issues)

php.Return type hint

Major
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;
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;
33
34
    public function toResponse($request): Response;
35
36
    public function toFeedItem(): FeedItem;
37
}
38