# vikbooking/trunk/admin/helpers/src/chat/useraware.php

VikBooking Hotel Booking Engine &amp; PMS, version trunk. 52 lines.

- Page: https://pluginprobe.com/plugins/vikbooking/trunk/code/admin/helpers/src/chat/useraware.php
- Raw: https://pluginprobe.com/plugins/vikbooking/trunk/raw/admin/helpers/src/chat/useraware.php
- Modified: 2026-04-20T22:09:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/vikbooking/trunk/code/admin/helpers/src/chat/useraware.php#L10-L20`.

```php
<?php
/** 
 * @package     VikBooking
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2026 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 user adapter.
 * 
 * @since 1.8
 */
abstract class VBOChatUseraware implements VBOChatUser, JsonSerializable
{
    /**
     * @inheritDoc
     */
    public function getAvatar()
    {
        return '';
    }

    /**
     * @inheritDoc
     */
    public function keepAlive(?VBOChatContext $context = null)
    {
        // do nothing
    }

    /**
     * @inheritDoc
     *
     * @see JsonSerializable
     */
    #[ReturnTypeWillChange]
    public function jsonSerialize()
    {
        return [
            'id' => $this->getID(),
            'name' => $this->getName(),
            'avatar' => $this->getAvatar(),
        ];
    }
}

```
