| 1 | <?php |
||
| 10 | class Barista |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var CoffeeGrinderInterface |
||
| 14 | */ |
||
| 15 | private $coffeeGrinder; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var CoffeeMachineInterface |
||
| 19 | */ |
||
| 20 | private $coffeeMachine; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Barista constructor. |
||
| 24 | * @param CoffeeGrinderInterface $coffeeGrinder |
||
| 25 | * @param CoffeeMachineInterface $coffeeMachine |
||
| 26 | */ |
||
| 27 | 1 | public function __construct(CoffeeGrinderInterface $coffeeGrinder, CoffeeMachineInterface $coffeeMachine) |
|
| 32 | |||
| 33 | 1 | public function makeCoffee() |
|
| 41 | } |
||
| 42 |