vasildakov /
econt
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace VasilDakov\Econt\Model; |
||
| 6 | |||
| 7 | use JMS\Serializer\Annotation as Serializer; |
||
| 8 | |||
| 9 | final readonly class Instruction |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 10 | { |
||
| 11 | public function __construct( |
||
| 12 | #[Serializer\Type('int')] |
||
| 13 | public ?int $id = null, |
||
| 14 | |||
| 15 | #[Serializer\Type('string')] |
||
| 16 | public ?string $type = null, |
||
| 17 | |||
| 18 | #[Serializer\Type('string')] |
||
| 19 | public ?string $title = null, |
||
| 20 | |||
| 21 | #[Serializer\Type('string')] |
||
| 22 | public ?string $description = null, |
||
| 23 | |||
| 24 | #[Serializer\Type('array')] |
||
| 25 | public ?array $attachments = [], |
||
| 26 | ) { |
||
| 27 | |||
| 28 | } |
||
| 29 | } |