@@ 10-114 (lines=105) @@ | ||
7 | * @since 2017-07-23 |
|
8 | * @version 1.0 |
|
9 | */ |
|
10 | class HunterPetSpecValueObject |
|
11 | { |
|
12 | /** |
|
13 | * @var string |
|
14 | */ |
|
15 | private $name; |
|
16 | ||
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | private $role; |
|
21 | ||
22 | /** |
|
23 | * @var string |
|
24 | */ |
|
25 | private $backgroundImage; |
|
26 | ||
27 | /** |
|
28 | * @var string |
|
29 | */ |
|
30 | private $icon; |
|
31 | ||
32 | /** |
|
33 | * @var string |
|
34 | */ |
|
35 | private $description; |
|
36 | ||
37 | /** |
|
38 | * @var string |
|
39 | */ |
|
40 | private $order; |
|
41 | ||
42 | /** |
|
43 | * HunterPetSpecValueObject constructor. |
|
44 | * @param string $name |
|
45 | * @param string $role |
|
46 | * @param string $backgroundImage |
|
47 | * @param string $icon |
|
48 | * @param string $description |
|
49 | * @param string $order |
|
50 | */ |
|
51 | public function __construct( |
|
52 | $name, |
|
53 | $role, |
|
54 | $backgroundImage, |
|
55 | $icon, |
|
56 | $description, |
|
57 | $order |
|
58 | ) { |
|
59 | $this->name = $name; |
|
60 | $this->role = $role; |
|
61 | $this->backgroundImage = $backgroundImage; |
|
62 | $this->icon = $icon; |
|
63 | $this->description = $description; |
|
64 | $this->order = $order; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return string |
|
69 | */ |
|
70 | public function getName() |
|
71 | { |
|
72 | return $this->name; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @return string |
|
77 | */ |
|
78 | public function getRole() |
|
79 | { |
|
80 | return $this->role; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return string |
|
85 | */ |
|
86 | public function getBackgroundImage() |
|
87 | { |
|
88 | return $this->backgroundImage; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @return string |
|
93 | */ |
|
94 | public function getIcon() |
|
95 | { |
|
96 | return $this->icon; |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * @return string |
|
101 | */ |
|
102 | public function getDescription() |
|
103 | { |
|
104 | return $this->description; |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @return string |
|
109 | */ |
|
110 | public function getOrder() |
|
111 | { |
|
112 | return $this->order; |
|
113 | } |
|
114 | } |
|
115 |
@@ 10-114 (lines=105) @@ | ||
7 | * @since 2017-08-01 |
|
8 | * @version 1.0 |
|
9 | */ |
|
10 | class SpecValueObject |
|
11 | { |
|
12 | /** |
|
13 | * @var string |
|
14 | */ |
|
15 | private $name; |
|
16 | ||
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | private $role; |
|
21 | ||
22 | /** |
|
23 | * @var string |
|
24 | */ |
|
25 | private $backgroundImage; |
|
26 | ||
27 | /** |
|
28 | * @var string |
|
29 | */ |
|
30 | private $icon; |
|
31 | ||
32 | /** |
|
33 | * @var string |
|
34 | */ |
|
35 | private $description; |
|
36 | ||
37 | /** |
|
38 | * @var int |
|
39 | */ |
|
40 | private $order; |
|
41 | ||
42 | /** |
|
43 | * SpecValueObject constructor. |
|
44 | * @param string $name |
|
45 | * @param string $role |
|
46 | * @param string $backgroundImage |
|
47 | * @param string $icon |
|
48 | * @param string $description |
|
49 | * @param int $order |
|
50 | */ |
|
51 | public function __construct( |
|
52 | $name, |
|
53 | $role, |
|
54 | $backgroundImage, |
|
55 | $icon, |
|
56 | $description, |
|
57 | $order |
|
58 | ) { |
|
59 | $this->name = $name; |
|
60 | $this->role = $role; |
|
61 | $this->backgroundImage = $backgroundImage; |
|
62 | $this->icon = $icon; |
|
63 | $this->description = $description; |
|
64 | $this->order = $order; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return string |
|
69 | */ |
|
70 | public function getName() |
|
71 | { |
|
72 | return $this->name; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @return string |
|
77 | */ |
|
78 | public function getRole() |
|
79 | { |
|
80 | return $this->role; |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * @return string |
|
85 | */ |
|
86 | public function getBackgroundImage() |
|
87 | { |
|
88 | return $this->backgroundImage; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @return string |
|
93 | */ |
|
94 | public function getIcon() |
|
95 | { |
|
96 | return $this->icon; |
|
97 | } |
|
98 | ||
99 | /** |
|
100 | * @return string |
|
101 | */ |
|
102 | public function getDescription() |
|
103 | { |
|
104 | return $this->description; |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * @return int |
|
109 | */ |
|
110 | public function getOrder() |
|
111 | { |
|
112 | return $this->order; |
|
113 | } |
|
114 | } |
|
115 |