Skip to content

Commit e54dbe8

Browse files
Add media property and getter to Promotion class
Added media property and corresponding getter method.
1 parent 6cc9278 commit e54dbe8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Models/Vouchers/Promotion.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Piggy\Api\ApiClient;
77
use Piggy\Api\Exceptions\MaintenanceModeException;
88
use Piggy\Api\Exceptions\PiggyRequestException;
9+
use Piggy\Api\Models\Loyalty\Media;
910
use Piggy\Api\StaticMappers\Vouchers\PromotionMapper;
1011
use Piggy\Api\StaticMappers\Vouchers\PromotionsMapper;
1112

@@ -56,6 +57,11 @@ class Promotion
5657
*/
5758
protected $attributes;
5859

60+
/**
61+
* @var Media|null
62+
*/
63+
protected $media;
64+
5965
/**
6066
* @var string
6167
*/
@@ -134,6 +140,11 @@ public function getAttributes(): array
134140
return $this->attributes;
135141
}
136142

143+
public function getMedia(): ?Media
144+
{
145+
return $this->media;
146+
}
147+
137148
/**
138149
* @param mixed[] $body
139150
*

0 commit comments

Comments
 (0)