Issues (27)

src/Model/Instruction.php (1 issue)

Labels
Severity
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
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 9 at column 6
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
}