Skip to content

Commit 06e9a5b

Browse files
authored
Merge pull request #3 from GeorgII-web/aliases
Aliases
2 parents 835a88f + cbc557d commit 06e9a5b

File tree

65 files changed

+228
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+228
-113
lines changed

.junie/guidelines.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020

2121
## Folder structure
2222

23-
- `src/Code` folder contains the framework internal code
23+
- `src/Abstract` folder contains the framework internal code
2424
- other folders like `src/"type"` contains specific types
2525
- `src/psalmTest.php` contains types usage to avoid Psalm issues like `unused method`
26-
- `src/Code/Assert/Assert.php` contains `assert` methods, add new methods instead of checking conditions directly in classes. Prefer to use Assert::"methos()".
2726

2827
## Tests
2928

docs/USAGE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ declare(strict_types=1);
129129

130130
namespace App\Domain;
131131

132-
use PhpTypedValues\Code\Assert\Assert;
133-
use PhpTypedValues\Code\Exception\FloatTypeException;
134-
use PhpTypedValues\Code\Integer\IntType;
132+
use PhpTypedValues\Abstract\Assert\Assert;
133+
use PhpTypedValues\Exception\FloatTypeException;
134+
use PhpTypedValues\Abstract\Integer\IntType;
135135

136136
final class EvenPositiveInt extends IntType
137137
{

src/Code/DateTime/DateTimeType.php renamed to src/Abstract/DateTime/DateTimeType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\DateTime;
5+
namespace PhpTypedValues\Abstract\DateTime;
66

77
use const PHP_EOL;
88

99
use DateTimeImmutable;
1010
use DateTimeZone;
11-
use PhpTypedValues\Code\Exception\DateTimeTypeException;
12-
use PhpTypedValues\Code\Exception\ReasonableRangeDateTimeTypeException;
11+
use PhpTypedValues\Exception\DateTimeTypeException;
12+
use PhpTypedValues\Exception\ReasonableRangeDateTimeTypeException;
1313

1414
use function count;
1515
use function sprintf;

src/Code/DateTime/DateTimeTypeInterface.php renamed to src/Abstract/DateTime/DateTimeTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\DateTime;
5+
namespace PhpTypedValues\Abstract\DateTime;
66

77
use DateTimeImmutable;
88

src/Code/Float/FloatType.php renamed to src/Abstract/Float/FloatType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\Float;
5+
namespace PhpTypedValues\Abstract\Float;
66

7-
use PhpTypedValues\Code\Exception\FloatTypeException;
7+
use PhpTypedValues\Exception\FloatTypeException;
88

99
use function sprintf;
1010

src/Code/Float/FloatTypeInterface.php renamed to src/Abstract/Float/FloatTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\Float;
5+
namespace PhpTypedValues\Abstract\Float;
66

77
/**
88
* @psalm-immutable

src/Code/Integer/IntType.php renamed to src/Abstract/Integer/IntType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\Integer;
5+
namespace PhpTypedValues\Abstract\Integer;
66

7-
use PhpTypedValues\Code\Exception\IntegerTypeException;
7+
use PhpTypedValues\Exception\IntegerTypeException;
88

99
use function sprintf;
1010

src/Code/Integer/IntTypeInterface.php renamed to src/Abstract/Integer/IntTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\Integer;
5+
namespace PhpTypedValues\Abstract\Integer;
66

77
/**
88
* @psalm-immutable

src/Code/String/StrType.php renamed to src/Abstract/String/StrType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\String;
5+
namespace PhpTypedValues\Abstract\String;
66

77
/**
88
* @psalm-immutable

src/Code/String/StrTypeInterface.php renamed to src/Abstract/String/StrTypeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpTypedValues\Code\String;
5+
namespace PhpTypedValues\Abstract\String;
66

77
/**
88
* @psalm-immutable

0 commit comments

Comments
 (0)