src/Transaction/Transaction.php
public function addModifier(TransactionModifierInterface $modifier)
    {
        $this->modifiers[$modifier->getIdentifier()->getFull()] = $modifier;

        if ($modifier instanceof HasTransactionInterface) {
            $modifier->setTransaction($this);
        }
    }
public function addModifier(TransactionModifierInterface $modifier)
    {
        $this->modifiers[$modifier->getIdentifier()->getFull()] = $modifier;

        if ($modifier instanceof HasTransactionInterface) {
            $modifier->setTransaction($this);
        }
    }
public function addModifier ( TransactionModifierInterface $ modifier ) { $ this -> modifiers [ $ modifier -> getIdentifier ( ) -> getFull ( ) ] = $ modifier ; if ( $ modifier instanceof HasTransactionInterface ) { $ modifier -> setTransaction ( $ this ) ; } }
Add a TransactionModifier to the Transaction
@param \Heystack\Ecommerce\Transaction\Interfaces\TransactionModifierInterface $modifier
@throws \InvalidArgumentException
@return void
Add a TransactionModifier to the Transaction