parent
b10dfdf411
commit
6537a2db81
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kartierung\Analyze\Result\Type;
|
||||
|
||||
use Kartierung\Analyze\Result\EntityResult;
|
||||
use Kartierung\Attribute\ListOf;
|
||||
|
||||
readonly class ArrayType
|
||||
{
|
||||
/**
|
||||
* @param EntityResult<object> $entity
|
||||
*/
|
||||
public function __construct(
|
||||
public EntityResult $entity
|
||||
) {}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kartierung\Analyze;
|
||||
|
||||
use Kartierung\Attribute\Id;
|
||||
use Kartierung\Attribute\ListOf;
|
||||
|
||||
class EntityWithListOfFullEntities
|
||||
{
|
||||
public function __construct(
|
||||
#[Id]
|
||||
public int $id,
|
||||
#[ListOf(IdOnlyEntity::class)]
|
||||
public array $children
|
||||
) {}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kartierung\Analyze;
|
||||
|
||||
use Kartierung\Attribute\Id;
|
||||
|
||||
class IdOnlyEntity
|
||||
{
|
||||
public function __construct(
|
||||
#[Id]
|
||||
public int $id
|
||||
) {}
|
||||
}
|
||||
Loading…
Reference in New Issue