Issues (54)

src/Model/State.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
use VasilDakov\Speedy\Traits\ToArray;
9
10
/**
11
 * Class State.
12
 *
13
 * @author Vasil Dakov <[email protected]>
14
 * @copyright 2009-2022 Neutrino.bg
15
 *
16
 * @version 1.0
17
 *
18
 * @Serializer\AccessType("public_method")
19
 */
20
class State
21
{
22
    use ToArray;
0 ignored issues
show
The trait VasilDakov\Speedy\Traits\ToArray requires the property $value which is not provided by VasilDakov\Speedy\Model\State.
Loading history...
23
24
    /**
25
     * @Serializer\Type("integer")
26
     */
27
    private ?int $id = null;
28
29
    /**
30
     * @Serializer\Type("string")
31
     */
32
    private string $name;
33
34
    /**
35
     * @Serializer\Type("string")
36
     */
37
    private string $nameEn;
38
39
    /**
40
     * @Serializer\Type("string")
41
     */
42
    private string $stateAlpha;
43
44
    /**
45
     * @Serializer\Type("integer")
46
     */
47
    private int $countryId;
48
49
    /**
50
     * @return ?int
51
     */
52 1
    public function getId(): ?int
53
    {
54 1
        return $this->id;
55
    }
56
57
    /**
58
     * @param ?int $id
59
     */
60 1
    public function setId(?int $id): void
61
    {
62 1
        $this->id = $id;
63
    }
64
65 1
    public function getName(): string
66
    {
67 1
        return $this->name;
68
    }
69
70 1
    public function setName(string $name): void
71
    {
72 1
        $this->name = $name;
73
    }
74
75 1
    public function getNameEn(): string
76
    {
77 1
        return $this->nameEn;
78
    }
79
80 1
    public function setNameEn(string $nameEn): void
81
    {
82 1
        $this->nameEn = $nameEn;
83
    }
84
85 1
    public function getStateAlpha(): string
86
    {
87 1
        return $this->stateAlpha;
88
    }
89
90 1
    public function setStateAlpha(string $stateAlpha): void
91
    {
92 1
        $this->stateAlpha = $stateAlpha;
93
    }
94
95 1
    public function getCountryId(): int
96
    {
97 1
        return $this->countryId;
98
    }
99
100 1
    public function setCountryId(int $countryId): void
101
    {
102 1
        $this->countryId = $countryId;
103
    }
104
105 1
    public function toArray(): array
106
    {
107 1
        return [
108 1
        ];
109
    }
110
}
111