Last active
February 15, 2019 16:21
-
-
Save araeuchle/bfcbf1dc9f4fe7739418cecb0401e48c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| namespace App\Example; | |
| class Pizza | |
| { | |
| /** | |
| * @var array | |
| */ | |
| protected $toppings; | |
| /** | |
| * @var string | |
| */ | |
| protected $orderId; | |
| /** | |
| * Pizza constructor. | |
| * @param array $toppings | |
| * @param string $orderId | |
| */ | |
| public function __construct(array $toppings, string $orderId) | |
| { | |
| $this->toppings = $toppings; | |
| $this->orderId = $orderId; | |
| } | |
| /** | |
| * @return array | |
| */ | |
| public function getToppings() | |
| { | |
| return $this->toppings; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment