Completed
Pull Request — master (#70)
by Daniel
04:46
created

StaticallyPublishablePage::getClassName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace SilverStripe\StaticPublishQueue\Test\SiteTreePublishingEngineTest\Model;
4
5
use SilverStripe\CMS\Model\SiteTree;
6
use SilverStripe\Dev\TestOnly;
7
use SilverStripe\StaticPublishQueue\Contract\StaticallyPublishable;
8
9
class StaticallyPublishablePage extends SiteTree implements TestOnly, StaticallyPublishable
10
{
11
12
    public $url;
13
    public $prio;
14
15
    public function getClassName()
16
    {
17
        return 'StaticallyPublishableTest';
18
    }
19
20
    public function getID()
21
    {
22
        return '1';
23
    }
24
25
    public function urlsToCache()
26
    {
27
        return array($this->url => $this->prio);
28
    }
29
}
30