| 1 | <?php |
||
| 5 | class TwitterStatusUpdate |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $content; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | private $imagePaths; |
||
| 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, array $imagePaths = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get Twitter status update content. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 6 | public function getContent() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Get Twitter status update image paths. |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 5 | public function getImagePaths() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Return Twitter status update api endpoint. |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 3 | public function getApiEndpoint() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Build Twitter request body. |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | 4 | public function getRequestBody() |
|
| 79 | } |
||
| 80 |
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..