@@ -15,7 +15,13 @@ |
||
15 | 15 | |
16 | 16 | interface CustomerAwareInterface |
17 | 17 | { |
18 | + /** |
|
19 | + * @return null|CustomerInterface |
|
20 | + */ |
|
18 | 21 | public function getCustomer(): ?CustomerInterface; |
19 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
20 | 26 | public function setCustomer(?CustomerInterface $customer): void; |
21 | 27 | } |
@@ -18,7 +18,13 @@ |
||
18 | 18 | |
19 | 19 | interface CustomerGroupInterface extends ResourceInterface, CodeAwareInterface |
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 | } |
@@ -22,35 +22,64 @@ discard block |
||
22 | 22 | public const MALE_GENDER = 'm'; |
23 | 23 | public const FEMALE_GENDER = 'f'; |
24 | 24 | |
25 | + /** |
|
26 | + * @return string|null |
|
27 | + */ |
|
25 | 28 | public function getEmail(): ?string; |
26 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
27 | 33 | public function setEmail(?string $email): void; |
28 | 34 | |
29 | 35 | /** |
30 | 36 | * Gets normalized email (should be used in search and sort queries). |
37 | + * @return string|null |
|
31 | 38 | */ |
32 | 39 | public function getEmailCanonical(): ?string; |
33 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
34 | 44 | public function setEmailCanonical(?string $emailCanonical): void; |
35 | 45 | |
36 | 46 | public function getFullName(): string; |
37 | 47 | |
48 | + /** |
|
49 | + * @return string|null |
|
50 | + */ |
|
38 | 51 | public function getFirstName(): ?string; |
39 | 52 | |
53 | + /** |
|
54 | + * @return void |
|
55 | + */ |
|
40 | 56 | public function setFirstName(?string $firstName): void; |
41 | 57 | |
58 | + /** |
|
59 | + * @return string|null |
|
60 | + */ |
|
42 | 61 | public function getLastName(): ?string; |
43 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
44 | 66 | public function setLastName(?string $lastName): void; |
45 | 67 | |
68 | + /** |
|
69 | + * @return \DateTimeInterface|null |
|
70 | + */ |
|
46 | 71 | public function getBirthday(): ?\DateTimeInterface; |
47 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
48 | 76 | public function setBirthday(?\DateTimeInterface $birthday): void; |
49 | 77 | |
50 | 78 | public function getGender(): string; |
51 | 79 | |
52 | 80 | /** |
53 | 81 | * You should use interface constants for that. |
82 | + * @return void |
|
54 | 83 | */ |
55 | 84 | public function setGender(string $gender): void; |
56 | 85 | |
@@ -58,15 +87,30 @@ discard block |
||
58 | 87 | |
59 | 88 | public function isFemale(): bool; |
60 | 89 | |
90 | + /** |
|
91 | + * @return CustomerGroupInterface|null |
|
92 | + */ |
|
61 | 93 | public function getGroup(): ?CustomerGroupInterface; |
62 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
63 | 98 | public function setGroup(?CustomerGroupInterface $group): void; |
64 | 99 | |
100 | + /** |
|
101 | + * @return string|null |
|
102 | + */ |
|
65 | 103 | public function getPhoneNumber(): ?string; |
66 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
67 | 108 | public function setPhoneNumber(?string $phoneNumber): void; |
68 | 109 | |
69 | 110 | public function isSubscribedToNewsletter(): bool; |
70 | 111 | |
112 | + /** |
|
113 | + * @return void |
|
114 | + */ |
|
71 | 115 | public function setSubscribedToNewsletter(bool $subscribedToNewsletter): void; |
72 | 116 | } |
@@ -33,10 +33,16 @@ |
||
33 | 33 | |
34 | 34 | public function lessThan(string $field, $value); |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $value |
|
38 | + */ |
|
36 | 39 | public function lessThanOrEqual(string $field, $value); |
37 | 40 | |
38 | 41 | public function greaterThan(string $field, $value); |
39 | 42 | |
43 | + /** |
|
44 | + * @param string $value |
|
45 | + */ |
|
40 | 46 | public function greaterThanOrEqual(string $field, $value); |
41 | 47 | |
42 | 48 | public function in(string $field, array $values); |
@@ -26,6 +26,7 @@ |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Configure options for this field type. |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function configureOptions(OptionsResolver $resolver): void; |
31 | 32 | } |
@@ -52,6 +52,9 @@ |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string|boolean $default |
|
57 | + */ |
|
55 | 58 | private function getOption(array $options, string $name, $default) |
56 | 59 | { |
57 | 60 | return $options[$name] ?? $default; |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface FilterInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function apply(DataSourceInterface $dataSource, string $name, $data, array $options): void; |
21 | 24 | } |
@@ -19,5 +19,8 @@ |
||
19 | 19 | |
20 | 20 | interface FiltersApplicatorInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function apply(DataSourceInterface $dataSource, Grid $grid, Parameters $parameters): void; |
23 | 26 | } |
@@ -19,5 +19,8 @@ |
||
19 | 19 | |
20 | 20 | interface SorterInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function sort(DataSourceInterface $dataSource, Grid $grid, Parameters $parameters): void; |
23 | 26 | } |