1 | <?php |
||
8 | class Pushover extends BaseSender |
||
9 | { |
||
10 | /** @var array */ |
||
11 | protected $config; |
||
12 | |||
13 | /** |
||
14 | * Sounds the api supports by default |
||
15 | * @see https://pushover.net/api#sounds |
||
16 | * @var array |
||
17 | */ |
||
18 | private $sounds = array( |
||
19 | 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', |
||
20 | 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', |
||
21 | 'persistent', 'echo', 'updown', 'none', |
||
22 | ); |
||
23 | |||
24 | /** |
||
25 | * @param Repository $config |
||
26 | */ |
||
27 | public function __construct(Repository $config) |
||
31 | |||
32 | /** |
||
33 | * Sends the message to the Pushover API |
||
34 | * @return void |
||
35 | */ |
||
36 | public function send() |
||
52 | |||
53 | /** |
||
54 | * Returns the proper sound for the notification type according to the config file |
||
55 | * @return string The sound string to use |
||
56 | */ |
||
57 | private function getSound() |
||
69 | |||
70 | /** |
||
71 | * Checks if the sound is supported by Pushover |
||
72 | * @param string $sound The sound string to check |
||
73 | * @return boolean [description] |
||
74 | */ |
||
75 | private function isSupportedSound($sound){ |
||
78 | } |
||
79 |
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..