1 | <?php |
||
42 | trait MessageBuilderTrait |
||
43 | { |
||
44 | /** |
||
45 | * @param string $messagePrefix |
||
46 | * @param EveApiReadWriteInterface $data |
||
47 | * |
||
48 | * @return string |
||
49 | * @throws \LogicException |
||
50 | */ |
||
51 | protected function createEveApiMessage(string $messagePrefix, EveApiReadWriteInterface $data): string |
||
68 | /** |
||
69 | * @param string $messagePrefix |
||
70 | * @param EveApiReadWriteInterface $data |
||
71 | * @param string $eventName |
||
72 | * |
||
73 | * @return string |
||
74 | * @throws \LogicException |
||
75 | */ |
||
76 | protected function createEventMessage( |
||
85 | /** |
||
86 | * @param EveApiReadWriteInterface $data |
||
87 | * @param string $eventName |
||
88 | * |
||
89 | * @return string |
||
90 | * @throws \LogicException |
||
91 | */ |
||
92 | protected function getEmittingEventMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
97 | /** |
||
98 | * @param EveApiReadWriteInterface $data |
||
99 | * @param string $eventName |
||
100 | * |
||
101 | * @return string |
||
102 | * @throws \LogicException |
||
103 | */ |
||
104 | protected function getEmptyXmlDataMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
109 | /** |
||
110 | * @param EveApiReadWriteInterface $data |
||
111 | * @param string $eventName |
||
112 | * @param string $fileName |
||
113 | * |
||
114 | * @return string |
||
115 | * @throws \LogicException |
||
116 | */ |
||
117 | protected function getFailedToWriteFileMessage( |
||
126 | /** |
||
127 | * @param EveApiReadWriteInterface $data |
||
128 | * @param string $eventName |
||
129 | * |
||
130 | * @return string |
||
131 | * @throws \LogicException |
||
132 | */ |
||
133 | protected function getFinishedEventMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
138 | /** |
||
139 | * @param EveApiReadWriteInterface $data |
||
140 | * @param string $eventName |
||
141 | * |
||
142 | * @return string |
||
143 | * @throws \LogicException |
||
144 | */ |
||
145 | protected function getNonHandledEventMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
150 | /** |
||
151 | * @param EveApiReadWriteInterface $data |
||
152 | * @param string $eventName |
||
153 | * @param string $location |
||
154 | * |
||
155 | * @return string |
||
156 | * @throws \LogicException |
||
157 | */ |
||
158 | protected function getReceivedEventMessage( |
||
167 | /** |
||
168 | * @param EveApiReadWriteInterface $data |
||
169 | * @param string $eventName |
||
170 | * |
||
171 | * @return string |
||
172 | * @throws \LogicException |
||
173 | */ |
||
174 | protected function getSufficientlyHandledEventMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
179 | /** |
||
180 | * @param EveApiReadWriteInterface $data |
||
181 | * @param string $eventName |
||
182 | * |
||
183 | * @return string |
||
184 | * @throws \LogicException |
||
185 | */ |
||
186 | protected function getWasHandledEventMessage(EveApiReadWriteInterface $data, string $eventName): string |
||
191 | } |
||
192 |