1 | <?php |
||
20 | class EE_Message_Resource_Manager { |
||
21 | |||
22 | |||
23 | |||
24 | /** |
||
25 | * @type EE_Messenger_Collection $_messenger_collection_loader |
||
26 | */ |
||
27 | protected $_messenger_collection_loader; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @type EE_Message_Type_Collection $_message_type_collection_loader |
||
32 | */ |
||
33 | protected $_message_type_collection_loader; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @type EEM_Message_Template_Group $_message_template_group_model |
||
38 | */ |
||
39 | protected $_message_template_group_model; |
||
40 | |||
41 | /** |
||
42 | * Array of active messengers. |
||
43 | * Format is this: |
||
44 | * array( |
||
45 | * 'messenger_name' => EE_messenger |
||
46 | * ) |
||
47 | * |
||
48 | * @type EE_Messenger[] |
||
49 | */ |
||
50 | protected $_active_messengers = array(); |
||
51 | |||
52 | /** |
||
53 | * Formatted array of active message types grouped per messenger. |
||
54 | * Format is this: |
||
55 | * array( |
||
56 | * 'messenger_name' => array( |
||
57 | * 'settings' => array( |
||
58 | * '{messenger_name}-message_types' => array( |
||
59 | * 'message_type_name' => array() //variable array of settings corresponding to message type. |
||
60 | * ) |
||
61 | * ) |
||
62 | * ) |
||
63 | * ) |
||
64 | * |
||
65 | * @type array |
||
66 | */ |
||
67 | protected $_active_message_types = array(); |
||
68 | |||
69 | |||
70 | |||
71 | /** |
||
72 | * EE_Message_Resource_Manager constructor. |
||
73 | * |
||
74 | * @param \EE_Messenger_Collection_Loader $Messenger_Collection_Loader |
||
75 | * @param \EE_Message_Type_Collection_Loader $Message_Type_Collection_Loader |
||
76 | * @param \EEM_Message_Template_Group $Message_Template_Group_Model |
||
77 | */ |
||
78 | function __construct( |
||
90 | |||
91 | |||
92 | |||
93 | /** |
||
94 | * @return EE_Messenger_Collection |
||
95 | */ |
||
96 | public function messenger_collection() { |
||
99 | |||
100 | |||
101 | |||
102 | /** |
||
103 | * @return EE_Message_Type_Collection |
||
104 | */ |
||
105 | public function message_type_collection() { |
||
108 | |||
109 | |||
110 | |||
111 | /** |
||
112 | * @param string $messenger_classname |
||
113 | * @return \EE_Messenger |
||
114 | */ |
||
115 | public function get_messenger( $messenger_classname ) { |
||
118 | |||
119 | |||
120 | |||
121 | /** |
||
122 | * @param string $message_type_classname |
||
123 | * @return \EE_Message_Type |
||
124 | */ |
||
125 | public function get_message_type( $message_type_classname ) { |
||
128 | |||
129 | |||
130 | |||
131 | /** |
||
132 | * Used to return active messengers array stored in the wp options table. |
||
133 | * If no value is present in the option then an empty array is returned. |
||
134 | * |
||
135 | * @return array |
||
136 | */ |
||
137 | public static function get_active_messengers_option() { |
||
143 | |||
144 | |||
145 | |||
146 | /** |
||
147 | * Used to update the active messengers array stored in the wp options table. |
||
148 | * |
||
149 | * @param array $active_messengers Incoming data to save. |
||
150 | * @return bool FALSE if not updated, TRUE if updated. |
||
151 | */ |
||
152 | public static function update_active_messengers_option( $active_messengers ) { |
||
155 | |||
156 | |||
157 | |||
158 | /** |
||
159 | * _set_active_messengers_and_message_types |
||
160 | * generate list of active messengers and message types from collection |
||
161 | */ |
||
162 | protected function _set_active_messengers_and_message_types() { |
||
175 | |||
176 | |||
177 | |||
178 | /** |
||
179 | * _deactivate_messenger |
||
180 | * |
||
181 | * @access protected |
||
182 | * @param string $messenger name of messenger |
||
183 | * @return void |
||
184 | */ |
||
185 | protected function _deactivate_messenger( $messenger ) { |
||
191 | |||
192 | |||
193 | |||
194 | /** |
||
195 | * _deactivate_message_type |
||
196 | * |
||
197 | * @access protected |
||
198 | * @param string $message_type name of message type |
||
199 | * @return void |
||
200 | */ |
||
201 | protected function _deactivate_message_type( $message_type ) { |
||
211 | |||
212 | |||
213 | } |
||
214 | // End of file EE_Message_Resource_Manager.lib.php |
||
215 | // Location: /EE_Message_Resource_Manager.lib.php |
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..