Completed
Push — master ( 0aca77...63e083 )
by Adam
14:43 queued 08:42
created

Theme   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 5
dl 0
loc 35
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getFolder() 0 4 1
A setFolder() 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\AppBundle\Entity;
14
15
use Doctrine\Common\Collections\ArrayCollection;
16
use Knp\DoctrineBehaviors\Model\Blameable\Blameable;
17
use Knp\DoctrineBehaviors\Model\Timestampable\Timestampable;
18
use WellCommerce\Bundle\CoreBundle\Doctrine\Behaviours\Identifiable;
19
use WellCommerce\Bundle\CoreBundle\Entity\EntityInterface;
20
21
/**
22
 * Class Theme
23
 *
24
 * @author  Adam Piotrowski <[email protected]>
25
 */
26
class Theme implements EntityInterface
27
{
28
    use Identifiable;
29
    use Timestampable;
30
    use Blameable;
31
    use ShopCollectionAwareTrait;
32
    
33
    protected $name   = '';
34
    protected $folder = '';
35
    
36
    public function __construct()
37
    {
38
        $this->shops = new ArrayCollection();
39
    }
40
    
41
    public function getName(): string
42
    {
43
        return $this->name;
44
    }
45
    
46
    public function setName(string $name)
47
    {
48
        $this->name = $name;
49
    }
50
    
51
    public function getFolder(): string
52
    {
53
        return $this->folder;
54
    }
55
    
56
    public function setFolder(string $folder)
57
    {
58
        $this->folder = $folder;
59
    }
60
}
61