1 | <?php |
||
5 | class TwitterStatusUpdate |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $content; |
||
9 | |||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $images; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | public $imageIds; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $apiEndpoint = 'statuses/update'; |
||
24 | |||
25 | /* |
||
26 | * @param string $content |
||
27 | */ |
||
28 | 7 | public function __construct($content) |
|
32 | |||
33 | /** |
||
34 | * Set Twitter media files. |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | 2 | public function withImage(array $images){ |
|
42 | |||
43 | /** |
||
44 | * Get Twitter status update content. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 6 | public function getContent() |
|
52 | |||
53 | /** |
||
54 | * Get Twitter images list. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | 5 | public function getImages() |
|
62 | |||
63 | /** |
||
64 | * Return Twitter status update api endpoint. |
||
65 | * @return string |
||
66 | */ |
||
67 | 3 | public function getApiEndpoint() |
|
71 | |||
72 | /** |
||
73 | * Build Twitter request body. |
||
74 | * @return array |
||
75 | */ |
||
76 | 4 | public function getRequestBody() |
|
88 | } |
||
89 |
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..