/** * @return string Content of document */ public function render() { return $this->engine->render(); }
public function createSource(Engine $engine) { try { return $engine->createImage($this->getAttribute('src')); } catch (InvalidResourceException $e) { if ($this->getAttribute('ignore-error')) { return EmptyImage::getInstance(); } throw $e; } }