Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/extmag/shiplab/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/shiplab/Model/Logs.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\Shiplab\Model;

use Extmag\Shiplab\Api\Data\LogsInterface;
use Magento\Framework\Model\AbstractModel;

class Logs extends AbstractModel implements LogsInterface
{
    /**
     * @return void
     */
    protected function _construct()
    {
        parent::_construct();
        $this->_init(ResourceModel\Logs::class);
    }
    /**
     * @inheritDoc
     */
    public function getId()
    {
        return parent::getData(self::ENTITY_ID);
    }
    /**
     * @inheritDoc
     */
    public function setId($value)
    {
        return $this->setData(self::ENTITY_ID, $value);
    }

    /**
     * @inheritDoc
     */
    public function getTitle()
    {
        return parent::getData(self::TITLE);
    }
    /**
     * @inheritDoc
     */
    public function setTitle($title)
    {
        return $this->setData(self::TITLE, $title);
    }

    /**
     * @inheritDoc
     */
    public function getCreatedTime()
    {
        return parent::getData(self::CREATED_TIME);
    }

    /**
     * @inheritDoc
     */
    public function setCreatedTime($createdTime)
    {
        return $this->setData(self::CREATED_TIME, $createdTime);
    }

    /**
     * @inheritDoc
     */
    public function getType()
    {
        return parent::getData(self::TYPE);
    }
    /**
     * @inheritDoc
     */
    public function setType($type)
    {
        return $this->setData(self::TYPE, $type);
    }

    /**
     * @inheritDoc
     */
    public function getMode()
    {
        return parent::getData(self::MODE);
    }
    /**
     * @inheritDoc
     */
    public function setMode($mode)
    {
        return $this->setData(self::MODE, $mode);
    }

    /**
     * @inheritDoc
     */
    public function getCarrier()
    {
        return parent::getData(self::CARRIER);
    }
    /**
     * @inheritDoc
     */
    public function setCarrier($carrier)
    {
        return $this->setData(self::CARRIER, $carrier);
    }

    /**
     * @inheritDoc
     */
    public function getOrderId()
    {
        return parent::getData(self::ORDER_ID);
    }
    /**
     * @inheritDoc
     */
    public function setOrderId($orderId)
    {
        return $this->setData(self::ORDER_ID, $orderId);
    }

    /**
     * @inheritDoc
     */
    public function getTypeDirection()
    {
        return parent::getData(self::TYPE_DIRECTION);
    }
    /**
     * @inheritDoc
     */
    public function setTypeDirection($typeDirection)
    {
        return $this->setData(self::TYPE_DIRECTION, $typeDirection);
    }

    /**
     * @inheritDoc
     */
    public function getRequest()
    {
        $data = parent::getData(self::REQUEST);
        if (!empty($data)) {
            $data = json_decode($data, true);
        }

        return $data;
    }
    /**
     * @inheritDoc
     */
    public function setRequest($request)
    {
        if (is_array($request)) {
            $request = json_encode($request);
        }
        return $this->setData(self::REQUEST, $request);
    }

    /**
     * @inheritDoc
     */
    public function getResponse()
    {
        $data = parent::getData(self::RESPONSE);
        if (!empty($data)) {
            $data = json_decode($data, true);
        }

        return $data;
    }
    /**
     * @inheritDoc
     */
    public function setResponse($response)
    {
        if (is_array($response)) {
            $response = json_encode($response);
        }
        return $this->setData(self::RESPONSE, $response);
    }

    /**
     * @param $mode
     * @param $type
     * @param $carrier
     * @param $title
     * @param $typeDirection
     * @param $orderId
     * @param $request
     * @param $response
     */
    public function setRow($mode, $type, $carrier, $title, $typeDirection, $orderId, $request, $response)
    {
        $this->setMode($mode);
        $this->setType($type);
        $this->setCarrier($carrier);
        $this->setTitle($title);
        $this->setTypeDirection($typeDirection);
        $this->setOrderId($orderId);
        $this->setRequest($request);
        $this->setResponse($response);
    }
}

Spamworldpro Mini