Completed
Push — master ( 75bb5a...dea818 )
by Mathieu
07:39
created

FaqCategory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A itemType() 0 4 1
A loadItems() 0 4 1
1
<?php
2
3
namespace Charcoal\Cms;
4
5
// Module `charcoal-base` dependencies
6
use \Charcoal\Object\Content;
7
use \Charcoal\Object\CategoryInterface;
8
use \Charcoal\Object\CategoryTrait;
9
10
class FaqCategory extends Content implements CategoryInterface
0 ignored issues
show
Bug introduced by
There is one abstract method loadCategoryItems in this class; you could implement it, or declare this class as abstract.
Loading history...
11
{
12
    use CategoryTrait;
13
14
    /**
15
    * CategoryTrait > item_type()
16
    *
17
    * @return string
18
    */
19
    public function itemType()
20
    {
21
        return 'charcoal/cms/faq';
22
    }
23
24
    /**
25
    * @return Collection
26
    */
27
    public function loadItems()
28
    {
29
        return [];
30
    }
31
}
32