1 | <?php |
||
31 | class NotificationEvent extends Event |
||
32 | { |
||
33 | /** |
||
34 | * A Subscription Notification Type |
||
35 | */ |
||
36 | const TYPE_SUBSCRIPTION = 'SubscriptionNotification'; |
||
37 | /** |
||
38 | * A Message Notification Type |
||
39 | */ |
||
40 | const TYPE_MESSAGE = 'MessageNotification'; |
||
41 | |||
42 | /** |
||
43 | * Queue name |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $queueName; |
||
48 | |||
49 | /** |
||
50 | * Notification Type |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $type; |
||
55 | |||
56 | /** |
||
57 | * Notification |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $notification; |
||
62 | |||
63 | /** |
||
64 | * Constructor |
||
65 | * |
||
66 | * @param string $queueName The Queue Name |
||
67 | * @param string $type The Notification Type |
||
68 | * @param Notification $notification The Notification |
||
69 | */ |
||
70 | 11 | public function __construct($queueName, $type, Notification $notification) |
|
82 | |||
83 | /** |
||
84 | * Returns the Queue name |
||
85 | * |
||
86 | * return string |
||
87 | */ |
||
88 | 1 | public function getQueueName() |
|
92 | |||
93 | /** |
||
94 | * Returns the Notification Type |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | 3 | public function getType() |
|
102 | |||
103 | /** |
||
104 | * Returns the Notification |
||
105 | * |
||
106 | * return array |
||
107 | */ |
||
108 | 5 | public function getNotification() |
|
112 | } |
||
113 |
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..