Category   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 4 1
A setName() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Domain\Model\Tests\Fixtures;
11
12
use Cubiche\Domain\Model\Entity;
13
14
/**
15
 * Category class.
16
 *
17
 * @author Ivannis Suárez Jerez <[email protected]>
18
 */
19
class Category extends Entity
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $name;
25
26
    /**
27
     * @return string
28
     */
29
    public function name()
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * @param string $name
36
     */
37
    public function setName($name)
38
    {
39
        $this->name = $name;
40
    }
41
}
42