for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\StaticPublishQueue\Test\SiteTreePublishingEngineTest\Model;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Dev\TestOnly;
use SilverStripe\StaticPublishQueue\Contract\StaticallyPublishable;
class StaticallyPublishablePage extends SiteTree implements TestOnly, StaticallyPublishable
{
private static $table_name = 'SPQ_StaticallyPublishablePage';
$table_name
public $url;
public $prio;
public function getID()
return '1';
}
public function urlsToCache()
return [$this->url => $this->prio];