Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 16 |
| App\Models\Article | |
0.00% |
0 / 1 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 16 |
| __construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
|||
| getID | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDescription | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getPrice | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getUrl | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| namespace App\Models; | |
| class Article { | |
| protected $id; | |
| protected $name; | |
| protected $description; | |
| protected $price; | |
| protected $url; | |
| public function __construct($id, $name, $description, $price, $url) { | |
| $this->id = $id; | |
| $this->name = $name; | |
| $this->description = $description; | |
| $this->price = $price; | |
| $this->url = $url; | |
| } | |
| public function getID() { | |
| return $this->id; | |
| } | |
| public function getName() { | |
| return $this->name; | |
| } | |
| public function getDescription() { | |
| return $this->description; | |
| } | |
| public function getPrice() { | |
| return $this->price; | |
| } | |
| public function getUrl() { | |
| return $this->url; | |
| } | |
| } |