<?php

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

use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\MobilePay\Resource\Request\Data\PaymentObjectInterface;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\MobilePay\Resource\Request\Data\PaymentInterface;
use KrokedilSwedbankPayDeps\SwedbankPay\Api\Service\Resource;
/**
 * MobilePay Payment object
 */
class PaymentObject extends Resource implements PaymentObjectInterface
{
    /**
     * @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);
    }
    /**
     * Set Shoplogo Url
     *
     * @param $url
     *
     * @return PaymentObject
     */
    public function setShoplogoUrl($url)
    {
        return $this->offsetSet(self::MOBILEPAY, ['shoplogoUrl' => $url]);
    }
    /**
     * Get Shoplogo Url
     *
     * @return mixed
     */
    public function getShoplogoUrl()
    {
        return $this->offsetGet(self::MOBILEPAY)['shoplogoUrl'];
    }
}
