Esempio n. 1
0
 /**
  * @param \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface|\Spryker\Zed\Discount\Dependency\Plugin\DiscountRuleWithAttributesPluginInterface $specificationPlugin
  *
  * @return array
  */
 protected function getAttributeTypes($specificationPlugin)
 {
     $attributeFields = [];
     foreach ($specificationPlugin->getAttributeTypes() as $attributeType) {
         $attributeFields[] = $specificationPlugin->getFieldName() . '.' . $attributeType;
     }
     return $attributeFields;
 }
Esempio n. 2
0
 /**
  * @return $this
  */
 protected function setAcceptedDataTypes()
 {
     return $this->clauseTransfer->setAcceptedTypes($this->rulePlugin->acceptedDataTypes());
 }