@@ -27,11 +27,23 @@ |
||
27 | 27 | */ |
28 | 28 | public function getReviews(): Collection; |
29 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
30 | 33 | public function addReview(ReviewInterface $review): void; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function removeReview(ReviewInterface $review): void; |
33 | 39 | |
40 | + /** |
|
41 | + * @return double |
|
42 | + */ |
|
34 | 43 | public function getAverageRating(): ?float; |
35 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
36 | 48 | public function setAverageRating(float $averageRating): void; |
37 | 49 | } |
@@ -17,15 +17,33 @@ |
||
17 | 17 | |
18 | 18 | interface ReviewerInterface extends ResourceInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return string|null |
|
22 | + */ |
|
20 | 23 | public function getEmail(): ?string; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function setEmail(?string $email): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return string|null |
|
32 | + */ |
|
24 | 33 | public function getFirstName(): ?string; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function setFirstName(?string $firstName): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return string|null |
|
42 | + */ |
|
28 | 43 | public function getLastName(): ?string; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function setLastName(?string $lastName): void; |
31 | 49 | } |
@@ -22,27 +22,65 @@ |
||
22 | 22 | public const STATUS_ACCEPTED = 'accepted'; |
23 | 23 | public const STATUS_REJECTED = 'rejected'; |
24 | 24 | |
25 | + /** |
|
26 | + * @return string |
|
27 | + */ |
|
25 | 28 | public function getTitle(): ?string; |
26 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
27 | 33 | public function setTitle(?string $title): void; |
28 | 34 | |
35 | + /** |
|
36 | + * @return integer |
|
37 | + */ |
|
29 | 38 | public function getRating(): ?int; |
30 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
31 | 43 | public function setRating(?int $rating): void; |
32 | 44 | |
45 | + /** |
|
46 | + * @return string |
|
47 | + */ |
|
33 | 48 | public function getComment(): ?string; |
34 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
35 | 53 | public function setComment(?string $comment): void; |
36 | 54 | |
55 | + /** |
|
56 | + * @return ReviewerInterface |
|
57 | + */ |
|
37 | 58 | public function getAuthor(): ?ReviewerInterface; |
38 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
39 | 63 | public function setAuthor(?ReviewerInterface $author): void; |
40 | 64 | |
65 | + /** |
|
66 | + * @return string |
|
67 | + */ |
|
41 | 68 | public function getStatus(): ?string; |
42 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
43 | 73 | public function setStatus(?string $status): void; |
44 | 74 | |
75 | + /** |
|
76 | + * @return ReviewableInterface |
|
77 | + */ |
|
45 | 78 | public function getReviewSubject(): ?ReviewableInterface; |
46 | 79 | |
80 | + /** |
|
81 | + * @param ReviewableInterface $reviewSubject |
|
82 | + * |
|
83 | + * @return void |
|
84 | + */ |
|
47 | 85 | public function setReviewSubject(?ReviewableInterface $reviewSubject): void; |
48 | 86 | } |
@@ -24,12 +24,24 @@ discard block |
||
24 | 24 | public const STATE_SHIPPED = 'shipped'; |
25 | 25 | public const STATE_CANCELLED = 'cancelled'; |
26 | 26 | |
27 | + /** |
|
28 | + * @return string |
|
29 | + */ |
|
27 | 30 | public function getState(): ?string; |
28 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
29 | 35 | public function setState(?string $state): void; |
30 | 36 | |
37 | + /** |
|
38 | + * @return ShippingMethodInterface |
|
39 | + */ |
|
31 | 40 | public function getMethod(): ?ShippingMethodInterface; |
32 | 41 | |
42 | + /** |
|
43 | + * @return void |
|
44 | + */ |
|
33 | 45 | public function setMethod(?ShippingMethodInterface $method): void; |
34 | 46 | |
35 | 47 | /** |
@@ -37,14 +49,26 @@ discard block |
||
37 | 49 | */ |
38 | 50 | public function getUnits(): Collection; |
39 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
40 | 55 | public function addUnit(ShipmentUnitInterface $unit): void; |
41 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
42 | 60 | public function removeUnit(ShipmentUnitInterface $unit): void; |
43 | 61 | |
44 | 62 | public function hasUnit(ShipmentUnitInterface $unit): bool; |
45 | 63 | |
64 | + /** |
|
65 | + * @return string |
|
66 | + */ |
|
46 | 67 | public function getTracking(): ?string; |
47 | 68 | |
69 | + /** |
|
70 | + * @return void |
|
71 | + */ |
|
48 | 72 | public function setTracking(?string $tracking): void; |
49 | 73 | |
50 | 74 | public function isTracked(): bool; |
@@ -18,8 +18,14 @@ |
||
18 | 18 | |
19 | 19 | interface ShipmentUnitInterface extends TimestampableInterface, ResourceInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return null|ShipmentInterface |
|
23 | + */ |
|
21 | 24 | public function getShipment(): ?ShipmentInterface; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function setShipment(?ShipmentInterface $shipment): void; |
24 | 30 | |
25 | 31 | public function getShippable(): ?ShippableInterface; |
@@ -15,15 +15,33 @@ |
||
15 | 15 | |
16 | 16 | interface ShippableInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return double |
|
20 | + */ |
|
18 | 21 | public function getShippingWeight(): ?float; |
19 | 22 | |
23 | + /** |
|
24 | + * @return double |
|
25 | + */ |
|
20 | 26 | public function getShippingVolume(): ?float; |
21 | 27 | |
28 | + /** |
|
29 | + * @return double |
|
30 | + */ |
|
22 | 31 | public function getShippingWidth(): ?float; |
23 | 32 | |
33 | + /** |
|
34 | + * @return double |
|
35 | + */ |
|
24 | 36 | public function getShippingHeight(): ?float; |
25 | 37 | |
38 | + /** |
|
39 | + * @return double |
|
40 | + */ |
|
26 | 41 | public function getShippingDepth(): ?float; |
27 | 42 | |
43 | + /** |
|
44 | + * @return ShippingCategoryInterface |
|
45 | + */ |
|
28 | 46 | public function getShippingCategory(): ?ShippingCategoryInterface; |
29 | 47 | } |
@@ -19,11 +19,23 @@ |
||
19 | 19 | |
20 | 20 | interface ShippingCategoryInterface extends CodeAwareInterface, TimestampableInterface, ResourceInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return string |
|
24 | + */ |
|
22 | 25 | public function getName(): ?string; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function setName(?string $name): void; |
25 | 31 | |
32 | + /** |
|
33 | + * @return string |
|
34 | + */ |
|
26 | 35 | public function getDescription(): ?string; |
27 | 36 | |
37 | + /** |
|
38 | + * @return void |
|
39 | + */ |
|
28 | 40 | public function setDescription(?string $description): void; |
29 | 41 | } |
@@ -35,18 +35,38 @@ discard block |
||
35 | 35 | |
36 | 36 | public function getName(): ?string; |
37 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
38 | 41 | public function setName(?string $name): void; |
39 | 42 | |
40 | 43 | public function getDescription(): ?string; |
41 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
42 | 48 | public function setDescription(?string $description): void; |
43 | 49 | |
50 | + /** |
|
51 | + * @return integer |
|
52 | + */ |
|
44 | 53 | public function getPosition(): ?int; |
45 | 54 | |
55 | + /** |
|
56 | + * @param integer $position |
|
57 | + * |
|
58 | + * @return void |
|
59 | + */ |
|
46 | 60 | public function setPosition(?int $position): void; |
47 | 61 | |
62 | + /** |
|
63 | + * @return ShippingCategoryInterface |
|
64 | + */ |
|
48 | 65 | public function getCategory(): ?ShippingCategoryInterface; |
49 | 66 | |
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
50 | 70 | public function setCategory(?ShippingCategoryInterface $category); |
51 | 71 | |
52 | 72 | /** |
@@ -56,9 +76,13 @@ discard block |
||
56 | 76 | * 1) None of shippables matches the category. |
57 | 77 | * 2) At least one of shippables matches the category. |
58 | 78 | * 3) All shippables have to match the method category. |
79 | + * @return integer |
|
59 | 80 | */ |
60 | 81 | public function getCategoryRequirement(): ?int; |
61 | 82 | |
83 | + /** |
|
84 | + * @return void |
|
85 | + */ |
|
62 | 86 | public function setCategoryRequirement(?int $categoryRequirement): void; |
63 | 87 | |
64 | 88 | /** |
@@ -68,14 +92,19 @@ discard block |
||
68 | 92 | |
69 | 93 | /** |
70 | 94 | * @param string $calculator |
95 | + * @return void |
|
71 | 96 | */ |
72 | 97 | public function setCalculator(?string $calculator): void; |
73 | 98 | |
74 | 99 | public function getConfiguration(): array; |
75 | 100 | |
101 | + /** |
|
102 | + * @return void |
|
103 | + */ |
|
76 | 104 | public function setConfiguration(array $configuration): void; |
77 | 105 | |
78 | 106 | /** |
107 | + * @param string $locale |
|
79 | 108 | * @return ShippingMethodTranslationInterface |
80 | 109 | */ |
81 | 110 | public function getTranslation(?string $locale = null): TranslationInterface; |
@@ -18,11 +18,23 @@ |
||
18 | 18 | |
19 | 19 | interface ShippingMethodTranslationInterface extends ResourceInterface, TranslationInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return string |
|
23 | + */ |
|
21 | 24 | public function getName(): ?string; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function setName(?string $name): void; |
24 | 30 | |
31 | + /** |
|
32 | + * @return string |
|
33 | + */ |
|
25 | 34 | public function getDescription(): ?string; |
26 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
27 | 39 | public function setDescription(?string $description): void; |
28 | 40 | } |