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 | 10 | * @return string |
|
35 | */ |
||
36 | 10 | public function getName() : ? string |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | 17 | * @return AuthorInterface |
|
44 | */ |
||
45 | 17 | public function setName(string $name = null) : AuthorInterface |
|
51 | |||
52 | /** |
||
53 | 6 | * @return string |
|
54 | */ |
||
55 | 6 | public function getUri() : ? string |
|
59 | |||
60 | /** |
||
61 | * @param string $uri |
||
62 | 8 | * @return AuthorInterface |
|
63 | */ |
||
64 | 8 | public function setUri(string $uri = null) : AuthorInterface |
|
70 | |||
71 | /** |
||
72 | 5 | * @return string |
|
73 | */ |
||
74 | 5 | public function getEmail() : ? string |
|
78 | |||
79 | /** |
||
80 | * @param string $email |
||
81 | 8 | * @return AuthorInterface |
|
82 | */ |
||
83 | 8 | public function setEmail(string $email = null) : AuthorInterface |
|
89 | |||
90 | /** |
||
91 | * @return array |
||
92 | */ |
||
93 | public function toArray() : array |
||
97 | } |
||
98 |