There was no good way to show this, so I decided to just put the code.
- public function __call($method, $arguments) {
- //check that the other object has the specified method
- if(method_exists($this->_manufacturer, $method)) {
- //invoke the method and return any result
- return call_user_func_array(array($this->_manufacturer, $method), $arguments);
- }
- }