Completed
Push — master ( d67f41...79042b )
by Adam
07:27
created

NewsCategoryTranslation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
/*
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\CmsBundle\Entity;
14
15
use Knp\DoctrineBehaviors\Model\Translatable\Translation;
16
use WellCommerce\Bundle\CoreBundle\Entity\AbstractTranslation;
17
18
/**
19
 * Class NewsCategoryTranslation
20
 *
21
 * @author  Adam Piotrowski <[email protected]>
22
 */
23
class NewsCategoryTranslation extends AbstractTranslation
24
{
25
    use Translation;
26
    
27
    protected $name = '';
28
    
29
    public function getName(): string
30
    {
31
        return $this->name;
32
    }
33
    
34
    public function setName(string $name)
35
    {
36
        $this->name = $name;
37
    }
38
}
39