Completed
Pull Request — 5.2 (#2400)
by
unknown
17:37 queued 05:03
created

AbstractStructurePage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isOnline() 0 4 1
A isStructurePage() 0 4 1
1
<?php
2
3
namespace Kunstmaan\NodeBundle\Entity;
4
5
/**
6
 * A StructurePage will always be offline and its nodes will never have a slug.
7
 */
8
abstract class AbstractStructurePage extends AbstractPage
9
{
10
    /**
11
     * A StructurePage will always be offline.
12
     *
13
     * @return bool
14
     */
15
    public function isOnline()
16
    {
17
        return false;
18
    }
19
20
    /**
21
     * By default this is true..
22
     *
23
     * {@inheritdoc}
24
     */
25
    public function isStructurePage()
26
    {
27
        return true;
28
    }
29
}
30