Test Setup Failed
Branch master (0141d3)
by Mathieu
07:06 queued 04:12
created

DocumentCategory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
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 loadCategoryItems() 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
/**
11
 * Document category.
12
 */
13
final class DocumentCategory extends Content implements CategoryInterface
14
{
15
    use CategoryTrait;
16
17
    /**
18
     * CategoryTrait > itemType()
19
     *
20
     * @return string
21
     */
22
    public function itemType()
23
    {
24
        return 'charcoal/cms/document';
25
    }
26
27
    /**
28
     * @return Collection
29
     */
30
    public function loadCategoryItems()
31
    {
32
        return [];
33
    }
34
}
35