3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Barcode\
Object;
13 * Class for generate Barcode
15 class Error
extends AbstractObject
18 * All texts are accepted
19 * @param string $value
22 public function validateText($value)
29 * @param bool $recalculate
32 public function getHeight($recalculate = false)
39 * @param bool $recalculate
42 public function getWidth($recalculate = false)
48 * Reset precedent instructions
49 * and draw the error message
52 public function draw()
54 $this->instructions
= array();
55 $this->addText('ERROR:', 10, array(5, 18), $this->font
, 0, 'left');
56 $this->addText($this->text
, 10, array(5, 32), $this->font
, 0, 'left');
57 return $this->instructions
;
61 * For compatibility reason
64 protected function prepareBarcode()
69 * For compatibility reason
72 protected function checkSpecificParams()
77 * For compatibility reason
80 protected function calculateBarcodeWidth()