Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (27 sloc) 693 Bytes
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\commerce\base;
use craft\commerce\elements\Order;
use craft\commerce\models\OrderAdjustment;
/**
* A method all adjusters must implement
*
* @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
* @since 2.0
*/
interface AdjusterInterface
{
// Public Methods
// =========================================================================
/**
* Returns adjustments to add to the order
*
* @param Order $order
* @return OrderAdjustment[]
*/
public function adjust(Order $order): array;
}
You can’t perform that action at this time.