-
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.
- Loading branch information
1 parent
6343024
commit 059a8e0
Showing
3 changed files
with
51 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Pixelshaped\FlatMapperBundle\Tests\Examples\Invalid; | ||
|
||
use Pixelshaped\FlatMapperBundle\Attributes\Identifier; | ||
use Pixelshaped\FlatMapperBundle\Attributes\InboundPropertyName; | ||
use Pixelshaped\FlatMapperBundle\Attributes\ReferencesArray; | ||
use Pixelshaped\FlatMapperBundle\Tests\Examples\Invalid\LeafDTO; | ||
|
||
class RootDTOWithTooManyIdentifiers | ||
{ | ||
/** | ||
* @param array<LeafDTO> $leafs | ||
*/ | ||
public function __construct( | ||
#[Identifier] | ||
#[InboundPropertyName('object1_id')] | ||
public int $id, | ||
#[Identifier] | ||
#[InboundPropertyName('object1_name')] | ||
public string $name, | ||
#[ReferencesArray(LeafDTO::class)] | ||
public array $leafs, | ||
) {} | ||
} |
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