1 | <?php declare(strict_types=1); |
||
15 | class Author implements AuthorInterface, ArrayableInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $uri; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $email; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 9 | public function getName() : ? string |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @return AuthorInterface |
||
44 | */ |
||
45 | 18 | public function setName(string $name = null) : AuthorInterface |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 5 | public function getUri() : ? string |
|
59 | |||
60 | /** |
||
61 | * @param string $uri |
||
62 | * @return AuthorInterface |
||
63 | */ |
||
64 | 9 | public function setUri(string $uri = null) : AuthorInterface |
|
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 4 | public function getEmail() : ? string |
|
78 | |||
79 | /** |
||
80 | * @param string $email |
||
81 | * @return AuthorInterface |
||
82 | */ |
||
83 | 9 | public function setEmail(string $email = null) : AuthorInterface |
|
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | */ |
||
93 | 2 | public function toArray() : array |
|
97 | } |
||
98 |