Created
August 22, 2011 03:15
-
-
Save monsat/1161580 to your computer and use it in GitHub Desktop.
test of protected method
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 | |
// insert this class and | |
// $this->Sample = new SampleExposed(); | |
class SampleExposed extends Sample { | |
public function __call($method, array $args = array()) { | |
if (!method_exists($this, $method)) | |
throw new BadMethodCallException("method '$method' does not exist"); | |
return call_user_func_array(array($this, $method), $args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment