<?php

namespace KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Swish\Resource\Request;

use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Resource\Request as RequestResource;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Swish\Resource\Request\Data\SwishPaymentObjectInterface;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Swish\Resource\Request\Data\PaymentInterface;
/**
 * Swish Payment object
 */
class SwishPaymentObject extends RequestResource implements SwishPaymentObjectInterface
{
    /**
     * @return PaymentInterface
     */
    public function getPayment()
    {
        return $this->offsetGet(self::PAYMENT);
    }
    /**
     * @param PaymentInterface $payment
     * @return $this
     */
    public function setPayment($payment)
    {
        return $this->offsetSet(self::PAYMENT, $payment);
    }
}
