You are here

public function AbstractEntry::__call in Zircon Profile 8.0

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

Method overloading: call given method on first extension implementing it

Parameters

string $method:

array $args:

Return value

mixed

Throws

Exception\RuntimeException if no extensions implements the method

File

vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php, line 199

Class

AbstractEntry

Namespace

Zend\Feed\Reader\Entry

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\RuntimeException(sprintf('Method: %s does not exist and could not be located on a registered Extension', $method));
}