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 Area
14: */
15: class Area extends Base
16: {
17: /**
18: * @var int
19: */
20: protected $id;
21: /**
22: * @var string
23: */
24: protected $name;
25: /**
26: * @var bool
27: */
28: protected $active;
29: /**
30: * @var Country[]
31: */
32: protected $countries;
33:
34: /**
35: * @return int
36: */
37: public function getId()
38: {
39: return $this->id;
40: }
41:
42: /**
43: * @param int $id
44: *
45: * @return Area
46: */
47: public function setId($id)
48: {
49: $this->id = $id;
50:
51: return $this;
52: }
53:
54: /**
55: * @return string
56: */
57: public function getName()
58: {
59: return $this->name;
60: }
61:
62: /**
63: * @param string $name
64: *
65: * @return Area
66: */
67: public function setName($name)
68: {
69: $this->name = $name;
70:
71: return $this;
72: }
73:
74: /**
75: * @return bool
76: */
77: public function isActive()
78: {
79: return $this->active;
80: }
81:
82: /**
83: * @param bool $active
84: *
85: * @return Area
86: */
87: public function setActive($active)
88: {
89: $this->active = $active;
90:
91: return $this;
92: }
93:
94: /**
95: * @return Country[]
96: */
97: public function getCountries()
98: {
99: return $this->countries;
100: }
101:
102: /**
103: * @param Country[] $countries
104: *
105: * @return Area
106: */
107: public function setCountries($countries)
108: {
109: $this->countries = $countries;
110:
111: return $this;
112: }
113: }
114: