Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TierPriceType.php
Go to the documentation of this file.
1 <?php
8 
11 
15 class TierPriceType extends \Magento\CatalogImportExport\Model\Import\Product\Validator\AbstractImportValidator
16 {
20  public function init($context)
21  {
22  return parent::init($context);
23  }
24 
31  public function isValid($value)
32  {
33  $isValid = true;
34 
37  && !in_array(
40  )
41  ) {
42  $this->_addMessages([RowValidatorInterface::ERROR_INVALID_TIER_PRICE_TYPE]);
43  $isValid = false;
44  }
45 
46  return $isValid;
47  }
48 }
$value
Definition: gender.phtml:16