public function getMaxSize() { // We must compute the first digit calculating the width $null = null; $this->isLengthCorrect($null); return parent::getMaxSize(); }
/** * Returns the maximal size of a barcode. * * @return int[] */ public function getMaxSize() { // We must compute the first digit calculating the width $null = null; $this->checkCorrectLength($null); $size = parent::getMaxSize(); // Make room for the ISBN text if (strlen($this->isbn_created) && $this->getISBNFont() instanceof BCGFont) { $textfont = clone $this->getISBNFont(); $textfont->setText($this->isbn_created); $size[0] = max($size[0], $textfont->getWidth() + 2); } return $size; }