51 - Green with Feature Envy

This commit is contained in:
Adam Wathan
2016-12-15 17:51:45 -05:00
parent d3b19b31ab
commit 4efdc94e2f
5 changed files with 22 additions and 27 deletions

View File

@@ -28,6 +28,11 @@ class Reservation
return $this->email;
}
public function complete()
{
return Order::forTickets($this->tickets(), $this->email(), $this->totalCost());
}
public function cancel()
{
foreach ($this->tickets as $ticket) {