Отформатировал readme
This commit is contained in:
parent
5ece49e330
commit
b0dcc72824
54
Readme.md
54
Readme.md
@ -49,32 +49,32 @@ class HelloRequest
|
|||||||
use Rinsvent\Data2DTO\Data2DtoConverter;
|
use Rinsvent\Data2DTO\Data2DtoConverter;
|
||||||
|
|
||||||
$data2DtoConverter = new Data2DtoConverter();
|
$data2DtoConverter = new Data2DtoConverter();
|
||||||
$dto = $data2DtoConverter->convert([
|
$dto = $data2DtoConverter->convert([
|
||||||
'surname' => ' asdf',
|
'surname' => ' asdf',
|
||||||
'fake_age' => 3,
|
'fake_age' => 3,
|
||||||
'emails' => [
|
'emails' => [
|
||||||
'sfdgsa',
|
'sfdgsa',
|
||||||
'af234f',
|
'af234f',
|
||||||
'asdf33333'
|
'asdf33333'
|
||||||
],
|
],
|
||||||
'authors' => [
|
'authors' => [
|
||||||
[
|
[
|
||||||
'name' => 'Tolkien',
|
'name' => 'Tolkien',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'name' => 'Sapkovsky'
|
'name' => 'Sapkovsky'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'buy' => [
|
'buy' => [
|
||||||
'phrase' => 'Buy buy!!!',
|
'phrase' => 'Buy buy!!!',
|
||||||
'length' => 10,
|
'length' => 10,
|
||||||
'isFirst' => true,
|
'isFirst' => true,
|
||||||
'extraData2' => '1234'
|
'extraData2' => '1234'
|
||||||
],
|
],
|
||||||
'bar' => [
|
'bar' => [
|
||||||
'barField' => 32
|
'barField' => 32
|
||||||
],
|
],
|
||||||
'extraData1' => 'qwer'
|
'extraData1' => 'qwer'
|
||||||
], HelloRequest::class);
|
], HelloRequest::class);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user