| 1 | <?php |
||
| 13 | class Author implements AuthorInterface |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $name; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $uri; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $email; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 6 | public function getName() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $name |
||
| 41 | * @return $this |
||
| 42 | */ |
||
| 43 | 9 | public function setName($name) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 3 | public function getUri() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $uri |
||
| 60 | * @return $this |
||
| 61 | */ |
||
| 62 | 4 | public function setUri($uri) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | 3 | public function getEmail() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @param string $email |
||
| 79 | * @return $this |
||
| 80 | */ |
||
| 81 | 4 | public function setEmail($email) |
|
| 87 | |||
| 88 | } |
||
| 89 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.