Test Failed
Push — master ( 86405a...ddb00e )
by Mathieu
42s queued 11s
created

PermissionCategory::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Charcoal\User\Acl;
4
5
// From 'charcoal-object'
6
use Charcoal\Object\Content;
7
use Charcoal\Object\CategoryInterface;
8
use Charcoal\Object\CategoryTrait;
9
10
/**
11
 * User permission category
12
 */
13
class PermissionCategory extends Content implements CategoryInterface
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: hasProperty, p, properties, property
Loading history...
14
{
15
    use CategoryTrait;
16
17
    /**
18
     * @var \Charcoal\Translator\Translation|null
19
     */
20
    private $name;
21
22
    /**
23
     * @param mixed $name The news category name (localized).
24
     * @return self
25
     */
26
    public function setName($name)
27
    {
28
        $this->name = $this->translator()->translation($name);
29
        return $this;
30
    }
31
32
    /**
33
     * @return \Charcoal\Translator\Translation|null
34
     */
35
    public function getName()
36
    {
37
        return $this->name;
38
    }
39
40
    /**
41
     * @return array
42
     */
43
    public function loadCategoryItems()
44
    {
45
        return [];
46
    }
47
}
48