1 | <?php |
||
18 | class Notifications_Task extends \ElkArte\ValuesContainer |
||
19 | { |
||
20 | /** |
||
21 | * Data of the members to notify. |
||
22 | * Populated only if the getMembersData method is called. |
||
23 | * |
||
24 | * @var mixed[] |
||
25 | */ |
||
26 | protected $_members_data = null; |
||
27 | |||
28 | /** |
||
29 | * Data of the member generating the notification. |
||
30 | * Populated only if the getNotifierData method is called. |
||
31 | * |
||
32 | * @var mixed[] |
||
33 | */ |
||
34 | protected $_notifier_data = null; |
||
35 | |||
36 | /** |
||
37 | * The constructor prepared the data array and fills some default values |
||
38 | * if needed. |
||
39 | * |
||
40 | * @param string $type The notification type we are dealing with |
||
41 | * @param int $id The id of the target (can be a message, a topic, a member, whatever) |
||
42 | * @param int $id_member The id of the member generating the notification |
||
43 | * @param mixed[] $data An array of data that can be necessary in the process |
||
44 | * @param string $namespace A namespace for the class if different from the |
||
45 | * default \ElkArte\sources\subs\MentionType\ |
||
46 | */ |
||
47 | public function __construct($type, $id, $id_member, $data, $namespace = '') |
||
66 | |||
67 | /** |
||
68 | * Returns the array of member that have to receive the notification. |
||
69 | * |
||
70 | * @return int[] An array of member id |
||
71 | */ |
||
72 | public function getMembers() |
||
76 | |||
77 | /** |
||
78 | * Sets the members that have to receive the notification. |
||
79 | * |
||
80 | * @param int|int[] An array of member id |
||
81 | */ |
||
82 | public function setMembers($members) |
||
86 | |||
87 | /** |
||
88 | * Returns the data from getBasicMemberData about the members to be notified. |
||
89 | * |
||
90 | * @return mixed[] |
||
91 | */ |
||
92 | public function getMembersData() |
||
102 | |||
103 | /** |
||
104 | * Returns the data from getBasicMemberData about the member that |
||
105 | * generated the notification |
||
106 | * |
||
107 | * @return mixed[] |
||
108 | */ |
||
109 | public function getNotifierData() |
||
119 | |||
120 | /** |
||
121 | * Returns the class name of the MentionType. |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getClass() |
||
129 | } |
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..