@@ -520,6 +520,9 @@ |
||
| 520 | 520 | ] = $data; |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | + /** |
|
| 524 | + * @param \DateTimeInterface|null $date |
|
| 525 | + */ |
|
| 523 | 526 | protected function hasExpired(?\DateTimeInterface $date): bool |
| 524 | 527 | { |
| 525 | 528 | return null !== $date && new \DateTime() >= $date; |
@@ -52,6 +52,9 @@ |
||
| 52 | 52 | return 'sylius_locale'; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string|null $localeCode |
|
| 57 | + */ |
|
| 55 | 58 | private function getLocaleCode(?string $localeCode): ?string |
| 56 | 59 | { |
| 57 | 60 | if (null !== $localeCode) { |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @param string $code The code to be converted to a name |
| 22 | 22 | * @param string|null $localeCode The locale that the returned name should be in |
| 23 | + * @return string |
|
| 23 | 24 | */ |
| 24 | 25 | public function convertCodeToName(string $code, ?string $localeCode = null): ?string; |
| 25 | 26 | } |
@@ -36,6 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @param TaxonInterface|null $taxon |
| 39 | + * @return void |
|
| 39 | 40 | */ |
| 40 | 41 | public function setParent(?self $taxon): void; |
| 41 | 42 | |
@@ -58,38 +59,70 @@ discard block |
||
| 58 | 59 | |
| 59 | 60 | /** |
| 60 | 61 | * @param TaxonInterface $taxon |
| 62 | + * @return void |
|
| 61 | 63 | */ |
| 62 | 64 | public function addChild(self $taxon): void; |
| 63 | 65 | |
| 64 | 66 | /** |
| 65 | 67 | * @param TaxonInterface $taxon |
| 68 | + * @return void |
|
| 66 | 69 | */ |
| 67 | 70 | public function removeChild(self $taxon): void; |
| 68 | 71 | |
| 69 | 72 | public function getName(): ?string; |
| 70 | 73 | |
| 74 | + /** |
|
| 75 | + * @return void |
|
| 76 | + */ |
|
| 71 | 77 | public function setName(?string $name): void; |
| 72 | 78 | |
| 73 | 79 | public function getFullname(string $pathDelimiter = ' / '): ?string; |
| 74 | 80 | |
| 75 | 81 | public function getDescription(): ?string; |
| 76 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 77 | 86 | public function setDescription(?string $description): void; |
| 78 | 87 | |
| 88 | + /** |
|
| 89 | + * @return integer|null |
|
| 90 | + */ |
|
| 79 | 91 | public function getLeft(): ?int; |
| 80 | 92 | |
| 93 | + /** |
|
| 94 | + * @return void |
|
| 95 | + */ |
|
| 81 | 96 | public function setLeft(?int $left): void; |
| 82 | 97 | |
| 98 | + /** |
|
| 99 | + * @return integer|null |
|
| 100 | + */ |
|
| 83 | 101 | public function getRight(): ?int; |
| 84 | 102 | |
| 103 | + /** |
|
| 104 | + * @return void |
|
| 105 | + */ |
|
| 85 | 106 | public function setRight(?int $right): void; |
| 86 | 107 | |
| 108 | + /** |
|
| 109 | + * @return integer|null |
|
| 110 | + */ |
|
| 87 | 111 | public function getLevel(): ?int; |
| 88 | 112 | |
| 113 | + /** |
|
| 114 | + * @return void |
|
| 115 | + */ |
|
| 89 | 116 | public function setLevel(?int $level): void; |
| 90 | 117 | |
| 118 | + /** |
|
| 119 | + * @return integer|null |
|
| 120 | + */ |
|
| 91 | 121 | public function getPosition(): ?int; |
| 92 | 122 | |
| 123 | + /** |
|
| 124 | + * @return void |
|
| 125 | + */ |
|
| 93 | 126 | public function setPosition(?int $position): void; |
| 94 | 127 | |
| 95 | 128 | /** |
@@ -19,9 +19,18 @@ |
||
| 19 | 19 | { |
| 20 | 20 | public function hasValidationErrorWith(string $message): bool; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function logIn(): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function specifyPassword(string $password): void; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 26 | 35 | public function specifyUsername(string $username): void; |
| 27 | 36 | } |
@@ -17,13 +17,28 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function enable(): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function specifyUsername(string $username): void; |
| 23 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 24 | 33 | public function specifyEmail(string $email): void; |
| 25 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 26 | 38 | public function specifyPassword(string $password): void; |
| 27 | 39 | |
| 40 | + /** |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 28 | 43 | public function specifyLocale(string $localeCode): void; |
| 29 | 44 | } |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return string |
|
| 22 | + */ |
|
| 20 | 23 | public function getUsedThemeName(string $channelCode): ?string; |
| 21 | 24 | } |
@@ -17,7 +17,13 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function chooseName(string $name): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function addProvince(string $name, string $code, string $abbreviation = null): void; |
| 23 | 29 | } |
@@ -17,8 +17,14 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return void |
|
| 22 | + */ |
|
| 20 | 23 | public function enable(): void; |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @return void |
|
| 27 | + */ |
|
| 22 | 28 | public function disable(): void; |
| 23 | 29 | |
| 24 | 30 | public function isCodeFieldDisabled(): bool; |
@@ -27,15 +33,33 @@ discard block |
||
| 27 | 33 | |
| 28 | 34 | public function isThereProvinceWithCode(string $provinceCode): bool; |
| 29 | 35 | |
| 36 | + /** |
|
| 37 | + * @return void |
|
| 38 | + */ |
|
| 30 | 39 | public function addProvince(string $name, string $code, string $abbreviation = null): void; |
| 31 | 40 | |
| 41 | + /** |
|
| 42 | + * @return void |
|
| 43 | + */ |
|
| 32 | 44 | public function removeProvince(string $provinceName): void; |
| 33 | 45 | |
| 46 | + /** |
|
| 47 | + * @return void |
|
| 48 | + */ |
|
| 34 | 49 | public function clickAddProvinceButton(): void; |
| 35 | 50 | |
| 51 | + /** |
|
| 52 | + * @return void |
|
| 53 | + */ |
|
| 36 | 54 | public function nameProvince(string $provinceName): void; |
| 37 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 38 | 59 | public function removeProvinceName(string $provinceName): void; |
| 39 | 60 | |
| 61 | + /** |
|
| 62 | + * @return void |
|
| 63 | + */ |
|
| 40 | 64 | public function specifyProvinceCode(string $provinceCode): void; |
| 41 | 65 | } |