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

StaticPublisherTestPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A canPublish() 0 4 1
A getTemplate() 0 4 1
1
<?php
2
3
namespace SilverStripe\StaticPublishQueue\Test\StaticPublisherTest\Model;
4
5
use Page;
6
use SilverStripe\Dev\TestOnly;
7
8
class StaticPublisherTestPage extends Page implements TestOnly
9
{
10
11
    private static $allowed_children = array(
0 ignored issues
show
Unused Code introduced by
The property $allowed_children is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
12
        StaticPublisherTestPage::class
13
    );
14
15
16
    public function canPublish($member = null)
17
    {
18
        return true;
19
    }
20
21
    public function getTemplate()
22
    {
23
        return STATIC_MODULE_DIR . '/tests/templates/StaticPublisherTestPage.ss';
24
    }
25
}
26