public function Entry::__call in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::__call()
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Entry.php \Zend\Feed\Writer\Extension\ITunes\Entry::__call()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::__call()
Method overloading: call given method on first extension implementing it
Parameters
string $method:
array $args:
Return value
mixed
Throws
Exception\BadMethodCallException if no extensions implements the method
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Entry.php, line 697
Class
Namespace
Zend\Feed\WriterCode
public function __call($method, $args) {
foreach ($this->extensions as $extension) {
try {
return call_user_func_array([
$extension,
$method,
], $args);
} catch (\BadMethodCallException $e) {
}
}
throw new Exception\BadMethodCallException('Method: ' . $method . ' does not exist and could not be located on a registered Extension');
}