1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php
/**
* @author @jenschude <jens.schulze@commercetools.de>
*/
namespace Commercetools\Core\Model\CartDiscount;
/**
* @package Commercetools\Core\Model\CartDiscount
*
* @method string getType()
* @method LineItemsTarget setType(string $type = null)
* @method string getPredicate()
* @method LineItemsTarget setPredicate(string $predicate = null)
*/
class LineItemsTarget extends CartDiscountTarget
{
const TARGET_TYPE = 'lineItems';
public static function ofPredicate($predicate, $context = null)
{
return static::of($context)->setPredicate($predicate);
}
}