Created
February 26, 2016 09:52
-
-
Save ogavrushev/e93463afde12957d39a1 to your computer and use it in GitHub Desktop.
tikpik
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 | |
class TikPik | |
{ | |
private $chain; | |
public function __call($name, $arguments) | |
{ | |
$this->chain .= $name . ' '; | |
return $this; | |
} | |
public function __toString() | |
{ | |
return str_replace(' ', ' - ', trim($this->chain)); | |
} | |
} | |
$pik = new TikPik(); | |
echo $pik->pik()->tik()->pik(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment