Skip to content

Commit 0b17fa7

Browse files
committed
Change access modifiers constants
1 parent 7188968 commit 0b17fa7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Identity/Phone.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717
final class Phone implements ValueObjectInterface
1818
{
19-
const PATTERN_COUNTRY = "/^[0-9]{1,3}$/";
20-
const PATTERN_NUMBER = "/^[0-9]{10}$/";
19+
public const PATTERN_COUNTRY = "/^[0-9]{1,3}$/";
20+
public const PATTERN_NUMBER = "/^[0-9]{10}$/";
2121
/**
2222
* Country
2323
*

src/Identity/Username.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
final class Username extends StringLiteral
1818
{
19-
private const PATTERN_USERNAME = '/^([A-Za-z0-9]{5,31})$/';
19+
public const PATTERN_USERNAME = '/^([A-Za-z0-9]{5,31})$/';
2020

2121
/**
2222
* @param string $value

src/Person/Age.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ final class Age extends Integer
1919
/**
2020
* @var string min value age
2121
*/
22-
const MIN_VALUE = 1;
22+
public const MIN_VALUE = 1;
2323
/**
2424
* @var string max value age
2525
*/
26-
const MAX_VALUE = 180;
26+
public const MAX_VALUE = 180;
2727

2828
/**
2929
* @param int $value

0 commit comments

Comments
 (0)