/** * Constructor * * @param array|\Traversable $options * @throws RendererCreationException */ public function __construct($options = null) { if (!function_exists('gd_info')) { throw new RendererCreationException(__CLASS__ . ' requires the GD extension'); } parent::__construct($options); }
/** * Constructor * @param array|\Zend\Config\Config $options * @return void */ public function __construct($options = null) { if (!function_exists('gd_info')) { throw new RendererCreationException('\\Zend\\Barcode\\Renderer\\Image requires the GD extension'); } parent::__construct($options); }