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

StaticallyPublishablePage::getID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
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
    public $url;
12
    public $prio;
13
14
    public function getClassName() {
15
        return 'StaticallyPublishableTest';
16
    }
17
18
    public function getID() {
19
        return '1';
20
    }
21
22
    public function urlsToCache() {
23
        return array($this->url => $this->prio);
24
    }
25
26
}
27