commerce-8.x-2.8/modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderItemPromotionOfferInterface.php
modules/promotion/src/Plugin/Commerce/PromotionOffer/OrderItemPromotionOfferInterface.php
<?php
namespace Drupal\commerce_promotion\Plugin\Commerce\PromotionOffer;
/**
* Defines the interface for order item offers.
*
* Order item offers have conditions, which are used to determine which
* order items should be passed to the offer.
*/
interface OrderItemPromotionOfferInterface extends PromotionOfferInterface {
/**
* Gets the conditions.
*
* @return \Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[]
* The conditions.
*/
public function getConditions();
/**
* Sets the conditions.
*
* @param \Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[] $conditions
* The conditions.
*
* @return $this
*/
public function setConditions(array $conditions);
}
