File "contextaware.php"

Full Path: /home/romayxjt/public_html/wp-content/plugins/vikbooking/admin/helpers/src/chat/contextaware.php
File size: 1.04 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/** 
 * @package     VikBooking
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * Chat context adapter class.
 * 
 * @since 1.8
 */
abstract class VBOChatContextaware implements VBOChatContext
{
    /**
     * The foreign key to link the messages to the context.
     * 
     * @var int
     */
    protected $id;

    /**
     * Class constructor.
     * 
     * @param  int  $id  The context foreign key.
     */
    public function __construct(int $id)
    {
        $this->id = $id;
    }

    /**
     * @inheritDoc
     */
    final public function getID()
    {
        return $this->id;
    }

    /**
     * @inheritDoc
     */
    public function useAssets()
    {
        // do nothing
    }

    /**
     * @inheritDoc
     */
    public function getActions()
    {
        return [];
    }
}