mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
29 lines
613 B
PHP
29 lines
613 B
PHP
<?php
|
|
|
|
namespace SilverStripe\View\Tests\SSViewerCacheBlockTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\Versioned\Versioned;
|
|
|
|
class VersionedModel extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'SSViewerCacheBlockTest_VersionedModel';
|
|
|
|
protected $entropy = 'default';
|
|
|
|
private static $extensions = [
|
|
Versioned::class
|
|
];
|
|
|
|
public function setEntropy($entropy)
|
|
{
|
|
$this->entropy = $entropy;
|
|
}
|
|
|
|
public function Inspect()
|
|
{
|
|
return $this->entropy . ' ' . Versioned::get_reading_mode();
|
|
}
|
|
}
|