There was no good way to show this, so I decided to just put the code.

  1. public function __call($method, $arguments) {
  2. //check that the other object has the specified method
  3. if(method_exists($this->_manufacturer, $method)) {
  4. //invoke the method and return any result
  5. return call_user_func_array(array($this->_manufacturer, $method), $arguments);
  6. }
  7. }