Created
September 30, 2016 15:26
-
-
Save dhrrgn/8c03792ecab2b612843c9c9135c49ade to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
public function __call($method, $args) { | |
if (! $this->isConnected() || ! method_exists($this->pdo, $method)) { | |
throw new \BadMethodCallException("Method '$method' not found on ExtendedPdo"); | |
} | |
return call_user_func_array([$this->pdo, $method], $args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment