| @@ -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 | */ |