1 | <?php |
||
11 | final class JetSmsService |
||
12 | { |
||
13 | /** |
||
14 | * The jet sms client implementation. |
||
15 | * |
||
16 | * @var JetSmsClientInterface |
||
17 | */ |
||
18 | private $client; |
||
19 | |||
20 | /** |
||
21 | * The short message factory implementation. |
||
22 | * |
||
23 | * @var ShortMessageFactoryInterface |
||
24 | */ |
||
25 | private $factory; |
||
26 | |||
27 | /** |
||
28 | * The short message collection factory implementation. |
||
29 | * |
||
30 | * @var ShortMessageFactoryInterface |
||
31 | */ |
||
32 | private $collectionFactory; |
||
33 | |||
34 | /** |
||
35 | * JetSmsService constructor. |
||
36 | * |
||
37 | * @param JetSmsClientInterface $jetSmsClient |
||
38 | * @param ShortMessageFactoryInterface $shortMessageFactory |
||
39 | * @param ShortMessageCollectionFactoryInterface $shortMessageCollectionFactory |
||
40 | */ |
||
41 | 3 | public function __construct( |
|
50 | |||
51 | /** |
||
52 | * Send the given body to the given receivers. |
||
53 | * |
||
54 | * @param string $body The body of the short message. |
||
55 | * @param array|string $receivers The receiver(s) of the message. |
||
56 | * |
||
57 | * @return JetSmsResponseInterface The parsed JetSms response object. |
||
58 | */ |
||
59 | 2 | public function sendShortMessage($receivers, $body) |
|
65 | |||
66 | /** |
||
67 | * Send the given short messages. |
||
68 | * |
||
69 | * @param array $messages An array containing short message arrays. |
||
70 | * |
||
71 | * @return JetSmsResponseInterface The parsed JetSms response object. |
||
72 | */ |
||
73 | 1 | public function sendShortMessages(array $messages) |
|
86 | } |
||
87 |
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..