Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Tanpa chaining
$kucing = new Hewan();
$kucing->mengeong();
$kucing->makan();
$kucing->tidur();
// Dengan chaining
$kucing = new Hewan();
$kucing->mengeong()->makan()->tidur();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.