-
Notifications
You must be signed in to change notification settings - Fork 1
/
ErrorsMapperInterface.php
81 lines (70 loc) · 2.12 KB
/
ErrorsMapperInterface.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
namespace FreddieGar\JsonApiMapper\Contracts;
/**
* Interface ErrorsMapperInterface
* @package FreddieGar\JsonApiMapper\Contracts
*
* @method string id() Alias to getId() method
* @method string about() Alias to getAbout() method
* @method int status() Alias to getStatus() method
* @method string code() Alias to getCode() method
* @method string title() Alias to getTitle() method
* @method string detail() Alias to getDetail() method
* @method array source() Alias to getSource() method
* @method string meta(string $path = null) Alias to getMeta() method
* @method LinksMapperInterface links() Alias to getLinks() method
*
* @property string id Access magic to getId() method
* @property string about Access magic to getAbout() method
* @property int status Access magic to getStatus() method
* @property string code Access magic to getCode() method
* @property string title Access magic to getTitle() method
* @property string detail Access magic to getDetail() method
* @property array source Access magic to getSource() method
* @property LinksMapperInterface links Access magic to getLinks() method
*/
interface ErrorsMapperInterface extends LoaderInterface
{
/**
* @param int|null $index
* @return ErrorsMapperInterface
*/
public function get(?int $index = null): ?ErrorsMapperInterface;
/**
* @return string
*/
public function getId(): ?string;
/**
* @return null|string
*/
public function getAbout(): ?string;
/**
* @return int|null
*/
public function getStatus(): ?int;
/**
* @return null|string
*/
public function getCode(): ?string;
/**
* @return null|string
*/
public function getTitle(): ?string;
/**
* @return null|string
*/
public function getDetail(): ?string;
/**
* @return array|null
*/
public function getSource(): ?array;
/**
* @param null|string $path
* @return mixed|null
*/
public function getMeta(?string $path = null);
/**
* @return null|LinksMapperInterface
*/
public function getLinks(): ?LinksMapperInterface;
}