Created
June 4, 2020 02:28
-
-
Save anvodev/4b52c77e9d008f3c1fd1517b17535e2f 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 | |
//SweeterCoffee.php | |
class SweeterCoffee implements CoffeeInterface | |
{ | |
private $coffee; | |
public function __construct(CoffeeInterface $coffee) | |
{ | |
$this->coffee = $coffee; | |
} | |
public function drink() | |
{ | |
echo 'It feel sweeter..!' . PHP_EOL; | |
return $this->coffee->drink(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment