Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
67 | public function __construct($id, $numCode, $charCode, $scale, $name, $rate, \DateTime $date) |
||
68 | { |
||
69 | $this->id = $id; |
||
70 | $this->numCode = $numCode; |
||
71 | $this->charCode = $charCode; |
||
72 | $this->scale = $scale; |
||
73 | $this->name = $name; |
||
74 | $this->rate = $rate; |
||
75 | $this->date = $date; |
||
76 | } |
||
77 | |||
151 | } |
If a variable is not always an object, we recommend to add an additional type check to ensure your method call is safe: