getData('pad_length'); if (empty($padLength)) { $padLength = 8; } return $padLength; } /** * Get pad char * * @return string */ public function getPadChar() { $padChar = $this->getData('pad_char'); if (empty($padChar)) { $padChar = '0'; } return $padChar; } /** * Pad format * * @param mixed $id * @return string */ public function format($id) { $result = $this->getPrefix(); $result .= str_pad((string)$id, $this->getPadLength(), $this->getPadChar(), STR_PAD_LEFT); return $result; } /** * Frontend format * * @param mixed $id * @return mixed * @codeCoverageIgnore */ public function frontendFormat($id) { return $id; } }