PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 All 166 releases
← All changes | vendor_prefixed/sentry/sentry/src/Event.php +19 -0 1.10.20 → 1.10.21 View file →
@@ -2,8 +2,9 @@
2 2
3 3 declare (strict_types=1);
4 4 namespace WCPOS\Vendor\Sentry;
5 5
6 +use WCPOS\Vendor\Sentry\Attachment\Attachment;
6 7 use WCPOS\Vendor\Sentry\ClientReport\DiscardedEvent;
7 8 use WCPOS\Vendor\Sentry\Context\OsContext;
8 9 use WCPOS\Vendor\Sentry\Context\RuntimeContext;
9 10 use WCPOS\Vendor\Sentry\Logs\Log;
@@ -169,8 +170,12 @@
169 170 * @var Profile|null The profile data
170 171 */
171 172 private $profile;
172 173 /**
174 + * @var Attachment[]
175 + */
176 + private $attachments = [];
177 + /**
173 178 * @var DiscardedEvent[]
174 179 */
175 180 private $clientReports = [];
176 181 private function __construct(?EventId $eventId, EventType $eventType)
@@ -829,8 +834,22 @@
829 834 if (\is_string($traceId) && !empty($traceId)) {
830 835 return $traceId;
831 836 }
832 837 return null;
838 + }
839 + /**
840 + * @return Attachment[]
841 + */
842 + public function getAttachments() : array
843 + {
844 + return $this->attachments;
845 + }
846 + /**
847 + * @param Attachment[] $attachments
848 + */
849 + public function setAttachments(array $attachments) : void
850 + {
851 + $this->attachments = $attachments;
833 852 }
834 853 /**
835 854 * @param DiscardedEvent[] $clientReports
836 855 */