@@ 33-42 (lines=10) @@ | ||
30 | /** |
|
31 | * @return float |
|
32 | */ |
|
33 | public function getWage() |
|
34 | { |
|
35 | if ($this->wageReq == null) { |
|
36 | $wage = $this->wageOnSkill(); |
|
37 | $wage += $this->spareChange(); |
|
38 | if ($wage < 0) $wage = $wage * (-1); |
|
39 | $this->wageReq = round($wage, 2); |
|
40 | } |
|
41 | return $this->wageReq; |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * @return float |
@@ 55-65 (lines=11) @@ | ||
52 | /** |
|
53 | * @return float|int |
|
54 | */ |
|
55 | public function getWage() |
|
56 | { |
|
57 | if ($this->wageReq == null) { |
|
58 | $wage = round($this->getVal() / 10.0, 2); |
|
59 | $wage += $this->spareChange(); |
|
60 | if ($wage < 0) $wage = $wage * -1; |
|
61 | $this->wageReq = round($wage, 2); |
|
62 | } |
|
63 | return $this->wageReq; |
|
64 | ||
65 | } |
|
66 | ||
67 | /** |
|
68 | * @return float|int |