You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
3 years ago
|
<?php
|
||
|
|
||
|
namespace Rinsvent\DTO2Data\Tests\unit\Converter\fixtures\FillTest;
|
||
|
|
||
|
use Rinsvent\DTO2Data\Attribute\Schema;
|
||
|
use Rinsvent\DTO2Data\DTO\Map;
|
||
|
|
||
|
#[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)]
|
||
|
class HelloSchema extends Schema
|
||
|
{
|
||
|
public function __construct(
|
||
|
) {
|
||
|
|
||
|
parent::__construct(
|
||
|
(new Map())
|
||
|
->addProperty('surname')
|
||
|
->addProperty('age')
|
||
|
->addProperty('emails')
|
||
|
->addProperty(
|
||
|
'authors',
|
||
|
(new Map())
|
||
|
->addProperty('name')
|
||
|
)
|
||
|
->addProperty('buy',
|
||
|
(new Map)
|
||
|
->addProperty('phrase')
|
||
|
->addProperty('length')
|
||
|
->addProperty('isFirst')
|
||
|
)
|
||
|
->addProperty('bar',
|
||
|
(new Map())
|
||
|
->addProperty('barField')
|
||
|
)
|
||
|
,
|
||
|
['default']
|
||
|
);
|
||
|
}
|
||
|
}
|