|
20 | 20 | trait GallyChannelTrait |
21 | 21 | { |
22 | 22 | #[ORM\Column(name: 'gally_active', type: 'boolean', options: ['default' => false])] |
23 | | - protected $gallyActive = false; |
| 23 | + protected bool $gallyActive = false; |
24 | 24 |
|
25 | 25 | #[ORM\Column(name: 'gally_product_index_batch_size', type: 'integer', options: ['default' => 50])] |
26 | | - protected $gallyProductIndexBatchSize = 50; |
| 26 | + protected int $gallyProductIndexBatchSize = 50; |
27 | 27 |
|
28 | 28 | #[ORM\Column(name: 'gally_category_index_batch_size', type: 'integer', options: ['default' => 50])] |
29 | | - protected $gallyCategoryIndexBatchSize = 50; |
| 29 | + protected int $gallyCategoryIndexBatchSize = 50; |
30 | 30 |
|
31 | 31 | #[ORM\Column(name: 'gally_autocomplete_product_max_size', type: 'integer', options: ['default' => 6])] |
32 | | - protected $gallyAutocompleteProductMaxSize = 6; |
| 32 | + protected int $gallyAutocompleteProductMaxSize = 6; |
33 | 33 |
|
34 | 34 | #[ORM\Column(name: 'gally_autocomplete_category_max_size', type: 'integer', options: ['default' => 6])] |
35 | | - protected $gallyAutocompleteCategoryMaxSize = 6; |
| 35 | + protected int $gallyAutocompleteCategoryMaxSize = 6; |
36 | 36 |
|
37 | 37 | #[ORM\Column(name: 'gally_autocomplete_attribute_max_size', type: 'integer', options: ['default' => 6])] |
38 | | - protected $gallyAutocompleteAttributeMaxSize = 6; |
| 38 | + protected int $gallyAutocompleteAttributeMaxSize = 6; |
39 | 39 |
|
40 | 40 | #[ORM\Column(name: 'gally_tracking_active', type: 'boolean', options: ['default' => true])] |
41 | | - protected $gallyTrackingActive = true; |
| 41 | + protected bool $gallyTrackingActive = true; |
42 | 42 |
|
43 | 43 | #[ORM\Column(name: 'gally_use_sylius_endpoint_tracking', type: 'boolean', options: ['default' => true])] |
44 | | - protected $gallyUseSyliusEndpointTracking = true; |
| 44 | + protected bool $gallyUseSyliusEndpointTracking = true; |
45 | 45 |
|
46 | 46 | #[ORM\Column(name: 'gally_uid_cookie_lifetime', type: 'integer', options: ['default' => 3600])] |
47 | | - protected $gallyUidCookieLifetime = 3600; |
| 47 | + protected int $gallyUidCookieLifetime = 3600; |
48 | 48 |
|
49 | 49 | #[ORM\Column(name: 'gally_vid_cookie_lifetime', type: 'integer', options: ['default' => 31536000])] |
50 | | - protected $gallyVidCookieLifetime = 31536000; |
| 50 | + protected int $gallyVidCookieLifetime = 31536000; |
| 51 | + |
| 52 | + #[ORM\Column(name: 'gally_product_recommendation_max_size', type: 'integer', options: ['default' => 4])] |
| 53 | + protected int $gallyProductRecommendationMaxSize = 4; |
| 54 | + |
| 55 | + #[ORM\Column(name: 'gally_cart_recommendation_type_code', type: 'string', nullable: true)] |
| 56 | + protected ?string $gallyCartRecommendationTypeCode = null; |
| 57 | + |
| 58 | + #[ORM\Column(name: 'gally_cart_recommendation_max_size', type: 'integer', options: ['default' => 4])] |
| 59 | + protected int $gallyCartRecommendationMaxSize = 4; |
51 | 60 |
|
52 | 61 | public function getGallyActive(): bool |
53 | 62 | { |
@@ -148,4 +157,34 @@ public function setGallyVidCookieLifetime(int $gallyVidCookieLifetime): void |
148 | 157 | { |
149 | 158 | $this->gallyVidCookieLifetime = $gallyVidCookieLifetime; |
150 | 159 | } |
| 160 | + |
| 161 | + public function getGallyProductRecommendationMaxSize(): int |
| 162 | + { |
| 163 | + return $this->gallyProductRecommendationMaxSize; |
| 164 | + } |
| 165 | + |
| 166 | + public function setGallyProductRecommendationMaxSize(int $gallyProductRecommendationMaxSize): void |
| 167 | + { |
| 168 | + $this->gallyProductRecommendationMaxSize = $gallyProductRecommendationMaxSize; |
| 169 | + } |
| 170 | + |
| 171 | + public function getGallyCartRecommendationTypeCode(): ?string |
| 172 | + { |
| 173 | + return $this->gallyCartRecommendationTypeCode; |
| 174 | + } |
| 175 | + |
| 176 | + public function setGallyCartRecommendationTypeCode(?string $gallyCartRecommendationTypeCode): void |
| 177 | + { |
| 178 | + $this->gallyCartRecommendationTypeCode = $gallyCartRecommendationTypeCode; |
| 179 | + } |
| 180 | + |
| 181 | + public function getGallyCartRecommendationMaxSize(): int |
| 182 | + { |
| 183 | + return $this->gallyCartRecommendationMaxSize; |
| 184 | + } |
| 185 | + |
| 186 | + public function setGallyCartRecommendationMaxSize(int $gallyCartRecommendationMaxSize): void |
| 187 | + { |
| 188 | + $this->gallyCartRecommendationMaxSize = $gallyCartRecommendationMaxSize; |
| 189 | + } |
151 | 190 | } |
0 commit comments