1: <?php
2: /**
3: * LeadCommerce\Shopware\SDK\Entity
4: *
5: * Copyright 2016 LeadCommerce
6: *
7: * @author Alexander Mahrt <amahrt@leadcommerce.de>
8: * @copyright 2016 LeadCommerce <amahrt@leadcommerce.de>
9: */
10: namespace LeadCommerce\Shopware\SDK\Entity;
11:
12: /**
13: * Class State
14: */
15: class State extends Base
16: {
17: /**
18: * @var int
19: */
20: protected $id;
21: /**
22: * @var int
23: */
24: protected $countryId;
25: /**
26: * @var int
27: */
28: protected $position;
29: /**
30: * @var string
31: */
32: protected $name;
33: /**
34: * @var string
35: */
36: protected $shortCode;
37: /**
38: * @var bool
39: */
40: protected $active;
41:
42: /**
43: * @return int
44: */
45: public function getId()
46: {
47: return $this->id;
48: }
49:
50: /**
51: * @param int $id
52: *
53: * @return State
54: */
55: public function setId($id)
56: {
57: $this->id = $id;
58:
59: return $this;
60: }
61:
62: /**
63: * @return int
64: */
65: public function getCountryId()
66: {
67: return $this->countryId;
68: }
69:
70: /**
71: * @param int $countryId
72: *
73: * @return State
74: */
75: public function setCountryId($countryId)
76: {
77: $this->countryId = $countryId;
78:
79: return $this;
80: }
81:
82: /**
83: * @return int
84: */
85: public function getPosition()
86: {
87: return $this->position;
88: }
89:
90: /**
91: * @param int $position
92: *
93: * @return State
94: */
95: public function setPosition($position)
96: {
97: $this->position = $position;
98:
99: return $this;
100: }
101:
102: /**
103: * @return string
104: */
105: public function getName()
106: {
107: return $this->name;
108: }
109:
110: /**
111: * @param string $name
112: *
113: * @return State
114: */
115: public function setName($name)
116: {
117: $this->name = $name;
118:
119: return $this;
120: }
121:
122: /**
123: * @return string
124: */
125: public function getShortCode()
126: {
127: return $this->shortCode;
128: }
129:
130: /**
131: * @param string $shortCode
132: *
133: * @return State
134: */
135: public function setShortCode($shortCode)
136: {
137: $this->shortCode = $shortCode;
138:
139: return $this;
140: }
141:
142: /**
143: * @return bool
144: */
145: public function isActive()
146: {
147: return $this->active;
148: }
149:
150: /**
151: * @param bool $active
152: *
153: * @return State
154: */
155: public function setActive($active)
156: {
157: $this->active = $active;
158:
159: return $this;
160: }
161: }
162: