Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/ipol.sdek/classes/lib/Api/Entity/Response/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/ipol.sdek/classes/lib/Api/Entity/Response/CalculateTariff.php

<?php
namespace Ipolh\SDEK\Api\Entity\Response;

use Ipolh\SDEK\Api\Entity\Response\Part\CalculateTariff\Tariff;

/**
 * Class CalculateTariff
 * @package Ipolh\SDEK\Api\Entity\Response
 */
class CalculateTariff extends AbstractResponse
{
    /**
     * @var Tariff
     */
    protected $tariff;

    /**
     * @return Tariff
     */
    public function getTariff()
    {
        return $this->tariff;
    }

    /**
     * @param array $array
     * @return CalculateTariff
     */
    public function setTariff($array)
    {
        $this->tariff = new Tariff($array);
        return $this;
    }

    public function setFields($fields)
    {
        return parent::setFields(['tariff' => $fields]);
    }
}