-
Notifications
You must be signed in to change notification settings - Fork 1
/
LinksMapperInterface.php
67 lines (58 loc) · 1.69 KB
/
LinksMapperInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
namespace FreddieGar\JsonApiMapper\Contracts;
/**
* Interface LinksMapperInterface
* @package FreddieGar\JsonApiMapper\Contracts
*
* @method string self() Alias to getSelf() method
* @method string first() Alias to getFirst() method
* @method string prev() Alias to getPrev() method
* @method string next() Alias to getNext() method
* @method string last() Alias to getLast() method
* @method string about() Alias to getAbout() method
* @method null|string|RelatedMapperInterface related();
*
* @property string $first Access magic to getFirst() method
* @property string $prev Access magic to getPrev() method
* @property string $next Access magic to getNext() method
* @property string $last Access magic to getLast() method
* @property string $self Access magic to getSelf() method
* @property string $about Access magic to getAbout() method
* @property RelatedMapperInterface $related Access magic to getRelated() method
*/
interface LinksMapperInterface extends LoaderInterface
{
/**
* @return LinksMapperInterface
*/
public function get(): LinksMapperInterface;
/**
* @return null|string
*/
public function getSelf(): ?string;
/**
*
* @return null|string
*/
public function getFirst(): ?string;
/**
* @return null|string
*/
public function getPrev(): ?string;
/**
* @return null|string
*/
public function getNext(): ?string;
/**
* @return null|string
*/
public function getLast(): ?string;
/**
* @return null|string
*/
public function getAbout(): ?string;
/**
* @return null|string|RelatedMapperInterface
*/
public function getRelated();
}