Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
90.91% covered (success)
90.91%
10 / 11
90.91% covered (success)
90.91%
10 / 11
CRAP
0.00% covered (danger)
0.00%
0 / 1
Cart
90.91% covered (success)
90.91%
10 / 11
90.91% covered (success)
90.91%
10 / 11
11.09
0.00% covered (danger)
0.00%
0 / 1
 getId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getUserId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPrice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getQuantity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getImage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setUserId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setName
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setPrice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setQuantity
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setImage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Models;
3
4class Cart {
5    private $id;
6    private $userId;
7    private $name;
8    private $price;
9    private $quantity;
10    private $image;
11
12    // Getters
13    public function getId() { return $this->id; }
14    public function getUserId() { return $this->userId; }
15    public function getName() { return $this->name; }
16    public function getPrice() { return $this->price; }
17    public function getQuantity() { return $this->quantity; }
18    public function getImage() { return $this->image; }
19
20    // Setters
21    public function setUserId($userId) { $this->userId = $userId; }
22    public function setName($name) { $this->name = $name; }
23    public function setPrice($price) { $this->price = $price; }
24    public function setQuantity($quantity) { $this->quantity = $quantity; }
25    public function setImage($image) { $this->image = $image; }
26}