| Total Complexity | 10 |
| Total Lines | 80 |
| Duplicated Lines | 0 % |
| Coverage | 36% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class Sale implements SaleInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var TargetInterface |
||
| 32 | */ |
||
| 33 | protected $target; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var CustomerInterface |
||
| 37 | */ |
||
| 38 | protected $customer; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var PlanInterface |
||
| 42 | */ |
||
| 43 | protected $plan; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var DateTimeImmutable |
||
| 47 | */ |
||
| 48 | protected $time; |
||
| 49 | |||
| 50 | 3 | public function __construct( |
|
| 62 | 3 | } |
|
| 63 | |||
| 64 | public function getId() |
||
| 65 | { |
||
| 66 | return $this->id; |
||
| 67 | } |
||
| 68 | |||
| 69 | public function getTarget() |
||
| 72 | } |
||
| 73 | |||
| 74 | public function getCustomer() |
||
| 75 | { |
||
| 76 | return $this->customer; |
||
| 77 | } |
||
| 78 | |||
| 79 | 2 | public function getPlan() |
|
| 80 | { |
||
| 81 | 2 | return $this->plan; |
|
| 82 | } |
||
| 83 | |||
| 84 | public function getTime() |
||
| 85 | { |
||
| 86 | return $this->time; |
||
| 87 | } |
||
| 88 | |||
| 89 | public function hasId() |
||
| 90 | { |
||
| 91 | return $this->id !== null; |
||
| 92 | } |
||
| 93 | |||
| 94 | public function setId($id) |
||
| 103 | } |
||
| 104 | } |
||
| 105 |