Skip to content

Instantly share code, notes, and snippets.

@rizqidjamaluddin
Last active August 29, 2015 14:11
Show Gist options
  • Save rizqidjamaluddin/4d0c40975ba67da79c7b to your computer and use it in GitHub Desktop.
Save rizqidjamaluddin/4d0c40975ba67da79c7b to your computer and use it in GitHub Desktop.
<?php
class CakeService {
public function makeOrder($customer, $flavor) {
$cake = new Cake();
$cake->isFor($customer);
$cake->addFlavor($flavor);
$cake->bake();
$cake->save();
return $cake;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment