1 | <?php |
||
17 | class HoneypotPrey implements HoneypotPreyInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $ip; |
||
28 | |||
29 | /** |
||
30 | * @var DateTime |
||
31 | */ |
||
32 | protected $createdAt; |
||
33 | |||
34 | /** |
||
35 | * Class constructor |
||
36 | * |
||
37 | * @param string $ip |
||
38 | */ |
||
39 | public function __construct($ip = null) |
||
44 | |||
45 | /** |
||
46 | * Get id |
||
47 | * |
||
48 | * @return string $id |
||
49 | */ |
||
50 | public function getId() |
||
54 | |||
55 | /** |
||
56 | * Set ip |
||
57 | * |
||
58 | * @param string $ip |
||
59 | * @return self |
||
60 | */ |
||
61 | public function setIp($ip) |
||
67 | |||
68 | /** |
||
69 | * Get ip |
||
70 | * |
||
71 | * @return string $ip |
||
72 | */ |
||
73 | public function getIp() |
||
77 | |||
78 | /** |
||
79 | * Set createdAt |
||
80 | * |
||
81 | * @param DateTime $createdAt |
||
82 | * @return self |
||
83 | */ |
||
84 | public function setCreatedAt(\DateTime $createdAt) |
||
90 | |||
91 | /** |
||
92 | * Get createdAt |
||
93 | * |
||
94 | * @return DateTime $createdAt |
||
95 | */ |
||
96 | public function getCreatedAt() |
||
100 | } |
||
101 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..