Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function __construct($id=NULL, $title=NULL, $description=NULL, $image=NULL, $price=NULL) { |
||
13 | if (\is_array($id)) { |
||
14 | $this->fromArray($id); |
||
15 | } else { |
||
16 | $this->id=$id; |
||
17 | $this->title=$title; |
||
18 | $this->description=$description; |
||
19 | $this->image=$image; |
||
20 | $this->price=$price; |
||
21 | } |
||
22 | } |
||
23 | |||
85 | } |