HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/pewnabryka.pl/public_html/wp-content/plugins/vehica-core/app/Core/Demo.php
<?php


namespace Vehica\Core;


/**
 * Class Demo
 * @package Vehica\Core
 */
class Demo
{
    const URL = 'url';
    const NAME = 'name';
    const KEY = 'key';
    const IMAGE = 'image';
    const MEDIA_SOURCE = 'media_source';

    /**
     * @var array
     */
    private $demo;

    /**
     * Demo constructor.
     * @param array $demo
     */
    public function __construct(array $demo)
    {
        $this->demo = $demo;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->demo[self::NAME];
    }

    /**
     * @return string
     */
    public function getKey()
    {
        return $this->demo[self::KEY];
    }

    /**
     * @return string
     */
    public function getImage()
    {
        return $this->demo[self::IMAGE];
    }

    /**
     * @return string
     */
    public function getMediaSource()
    {
        return $this->demo[self::MEDIA_SOURCE] . '/wp-content/uploads/';
    }

    /**
     * @return string
     */
    public function getUrl()
    {
        return $this->demo[self::URL];
    }

}