| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | public function __construct($package, $id) |
|
| 20 | { |
||
| 21 | 1 | $this->id = (int) $id; |
|
| 22 | 1 | $this->name = $package->name; |
|
| 23 | 1 | $this->apps = $package->apps; |
|
| 24 | 1 | $this->page_content = $this->checkIssetField($package, 'page_content', 'none'); |
|
| 25 | 1 | $this->header = $this->checkIssetField($package, 'header_image', 'none'); |
|
| 26 | 1 | $this->small_logo = $this->checkIssetField($package, 'small_logo', 'none'); |
|
| 27 | 1 | $this->page_image = $this->checkIssetField($package, 'page_image', 'none'); |
|
| 28 | 1 | $this->price = $this->checkIssetField($package, 'price', $this->getFakePriceObject()); |
|
| 29 | 1 | $this->platforms = $package->platforms; |
|
| 30 | 1 | $this->controller = $package->controller; |
|
| 31 | 1 | $this->release = $package->release_date; |
|
| 32 | 1 | } |
|
| 33 | |||
| 41 |