You are here

public function AbstractFeed::__call in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::__call()
  2. 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::__call()
  3. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::__call()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::__call()

File

vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php, line 251

Class

AbstractFeed

Namespace

Zend\Feed\Reader\Feed

Code

public function __call($method, $args) {
  foreach ($this->extensions as $extension) {
    if (method_exists($extension, $method)) {
      return call_user_func_array([
        $extension,
        $method,
      ], $args);
    }
  }
  throw new Exception\BadMethodCallException('Method: ' . $method . 'does not exist and could not be located on a registered Extension');
}