mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
51 - Green with Feature Envy
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user