Last active
August 29, 2015 14:16
-
-
Save ricfrank/1e6a3a2e83292664e462 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Order | |
{ | |
private $orderId; | |
private $state; | |
private $total; | |
private $creationDate; | |
private $items = array(); | |
private $buyer; | |
public function getOirderId() | |
{ | |
... | |
} | |
public function addItems($item) | |
{ | |
... | |
} | |
public function archive() | |
{ | |
... | |
} | |
public function pay() | |
{ | |
... | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment