<?php
/**
 * This file is part of the BEAR.QueryRepository package.
 *
 * @license http://opensource.org/licenses/MIT MIT
 */
namespace FakeVendor\HelloWorld\Resource\App;

use BEAR\RepositoryModule\Annotation\Cacheable;
use BEAR\Resource\ResourceObject;

/**
 * @Cacheable(type="view")
 */
#[Cacheable(type: 'value')]
class View extends ResourceObject
{
    public static $i = 1;

    public function toString()
    {
        if ($this->view) {
            return $this->view;
        }

        $this->view = (string) self::$i++ . $this['time'];

        return $this->view;
    }

    public function onGet()
    {
        $this['time'] = (string) \microtime(true);

        return $this;
    }
}

<?php
/**
 * This file is part of the BEAR.QueryRepository package.
 *
 * @license http://opensource.org/licenses/MIT MIT
 */
namespace FakeVendor\HelloWorld\Resource\App;

use BEAR\RepositoryModule\Annotation\Cacheable;
use BEAR\Resource\ResourceObject;

/**
 * @Cacheable(type="view")
 */
#[Cacheable(type: 'view')]
class View extends ResourceObject
{
    public static $i = 1;

    public function toString()
    {
        if ($this->view) {
            return $this->view;
        }

        $this->view = (string) self::$i++ . $this['time'];

        return $this->view;
    }

    public function onGet()
    {
        $this['time'] = (string) \microtime(true);

        return $this;
    }
}

Fix an attribute for fake resource
Fix an attribute for fake resource
