Skip to content

Commit cfb06fb

Browse files
author
Denis Korolev
committed
добавил еще дто в ответ
1 parent 271e8e5 commit cfb06fb

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MagDv\Sbis\Entities\Document\Common;
6+
7+
use JMS\Serializer\Annotation as Serializer;
8+
9+
class ChangesAction
10+
{
11+
/**
12+
* @Serializer\SerializedName("Идентификатор")
13+
* @Serializer\Type("string")
14+
*/
15+
public ?string $id = null;
16+
17+
/**
18+
* @Serializer\SerializedName("Название")
19+
* @Serializer\Type("string")
20+
*/
21+
public ?string $name = null;
22+
}

src/Entities/Document/Common/Event.php

+7
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ class Event
4545
* @Serializer\Type("string")
4646
*/
4747
public ?string $name = null;
48+
49+
/**
50+
* @var ChangesAction|null
51+
* @Serializer\SerializedName("Действие")
52+
* @Serializer\Type("MagDv\Sbis\Entities\Document\Common\ChangesAction")
53+
*/
54+
public ?ChangesAction $action = null;
4855
}

0 commit comments

Comments
 (0)