MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/www/sabbry/vendor/frenet/frenet-php/src/ObjectType/Entity/Shipping/Info/Service.php
<?php

declare(strict_types = 1);

namespace Frenet\ObjectType\Entity\Shipping\Info;

use Frenet\ObjectType\EntityAbstract;

/**
 * Class Service
 *
 * @package Frenet\ObjectType\Entity\Shipping\Info
 */
class Service extends EntityAbstract implements ServiceInterface
{
    /**
     * @var array
     */
    protected $fieldMapping = [
        'ServiceCode'        => self::FIELD_SERVICE_CODE,
        'ServiceDescription' => self::FIELD_SERVICE_DESCRIPTION,
        'Carrier'            => self::FIELD_CARRIER,
        'CarrierCode'        => self::FIELD_CARRIER_CODE,
    ];

    /**
     * {@inheritdoc}
     */
    public function getServiceCode()
    {
        return (string) $this->getData(self::FIELD_SERVICE_CODE);
    }

    /**
     * {@inheritdoc}
     */
    public function getServiceDescription()
    {
        return (string) $this->getData(self::FIELD_SERVICE_DESCRIPTION);
    }

    /**
     * {@inheritdoc}
     */
    public function getCarrier()
    {
        return (string) $this->getData(self::FIELD_CARRIER);
    }

    /**
     * {@inheritdoc}
     */
    public function getCarrierCode()
    {
        return (string) $this->getData(self::FIELD_CARRIER_CODE);
    }
}