Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-eav
Model
Entity
Increment
NumericValue.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Eav\Model\Entity\Increment
;
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
}
Magento\Eav\Model\Entity\Increment
Definition:
AbstractIncrement.php:6
Magento\Eav\Model\Entity\Increment\NumericValue\getNextId
getNextId()
Definition:
NumericValue.php:27
Magento\Eav\Model\Entity\Increment\AbstractIncrement\format
format($id)
Definition:
AbstractIncrement.php:55
Magento\Eav\Model\Entity\Increment\NumericValue
Definition:
NumericValue.php:20