Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NumericValue.php
Go to the documentation of this file.
1 <?php
7 
20 class NumericValue extends \Magento\Eav\Model\Entity\Increment\AbstractIncrement
21 {
27  public function getNextId()
28  {
29  $last = $this->getLastId();
30 
31  if (strpos($last, $this->getPrefix()) === 0) {
32  $last = (int)substr($last, strlen($this->getPrefix()));
33  } else {
34  $last = (int)$last;
35  }
36 
37  $next = $last + 1;
38 
39  return $this->format($next);
40  }
41 }