-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: New naming scheme for attributes (#12)
- Loading branch information
1 parent
563869a
commit e29a219
Showing
27 changed files
with
178 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- name: PHPStan | ||
run: vendor/bin/phpstan | ||
- name: PHPUnit | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
run: vendor/bin/phpunit | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
/.phpunit.cache/ | ||
/var/ | ||
composer.lock | ||
coverage.xml | ||
clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Pixelshaped\FlatMapperBundle\Attributes; | ||
namespace Pixelshaped\FlatMapperBundle\Mapping; | ||
|
||
use Attribute; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_CLASS)] | ||
final readonly class Identifier | ||
{ | ||
public function __construct( | ||
public ?string $inboundPropertyName = null | ||
public ?string $mappedPropertyName = null | ||
) {} | ||
} |
6 changes: 3 additions & 3 deletions
6
src/Attributes/ReferencesArray.php → src/Mapping/ReferenceArray.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Pixelshaped\FlatMapperBundle\Attributes; | ||
namespace Pixelshaped\FlatMapperBundle\Mapping; | ||
|
||
use Attribute; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY)] | ||
final readonly class ReferencesArray | ||
final readonly class ReferenceArray | ||
{ | ||
public function __construct( | ||
/** @var class-string */ | ||
public string $className | ||
public string $referenceClassName | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Pixelshaped\FlatMapperBundle\Attributes; | ||
namespace Pixelshaped\FlatMapperBundle\Mapping; | ||
|
||
use Attribute; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY)] | ||
final readonly class ColumnArray | ||
final readonly class Scalar | ||
{ | ||
public function __construct( | ||
public string $inboundPropertyName | ||
public string $mappedPropertyName | ||
) {} | ||
} |
6 changes: 3 additions & 3 deletions
6
src/Attributes/InboundPropertyName.php → src/Mapping/ScalarArray.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Pixelshaped\FlatMapperBundle\Attributes; | ||
namespace Pixelshaped\FlatMapperBundle\Mapping; | ||
|
||
use Attribute; | ||
|
||
#[Attribute(Attribute::TARGET_PROPERTY)] | ||
final readonly class InboundPropertyName | ||
final readonly class ScalarArray | ||
{ | ||
public function __construct( | ||
public string $inboundPropertyName | ||
public string $mappedPropertyName | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.