Created
December 17, 2016 11:59
-
-
Save viniciusalonso/e9586f9bf95bd8ce93d40947a3a69613 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 Item { | |
private $product; | |
private $quantity; | |
public function __construct($product, $quantity) { | |
$this->product = $product; | |
$this->quantity = $quantity; | |
} | |
public function getProduct() { | |
return $this->product; | |
} | |
public function getQuantity() { | |
return $this->quantity; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment