/** * @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; }
/** * @return $this */ protected function setAcceptedDataTypes() { return $this->clauseTransfer->setAcceptedTypes($this->rulePlugin->acceptedDataTypes()); }