Completed
Push — template-events/cli-debug ( 4c2253...b13442 )
by Kamil
06:36
created

TemplateBlock   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getName() 0 4 1
A getTemplate() 0 4 1
A getPriority() 0 4 1
A isEnabled() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sylius\Bundle\UiBundle\Registry;
15
16
final class TemplateBlock
17
{
18
    /** @var string */
19
    private $name;
20
21
    /** @var string */
22
    private $template;
23
24
    /** @var int */
25
    private $priority;
26
27
    /** @var bool */
28
    private $enabled;
29
30
    public function __construct(
31
        string $name,
32
        string $template,
33
        int $priority,
34
        bool $enabled
35
    ) {
36
        $this->name = $name;
37
        $this->template = $template;
38
        $this->priority = $priority;
39
        $this->enabled = $enabled;
40
    }
41
42
    public function getName(): string
43
    {
44
        return $this->name;
45
    }
46
47
    public function getTemplate(): string
48
    {
49
        return $this->template;
50
    }
51
52
    public function getPriority(): int
53
    {
54
        return $this->priority;
55
    }
56
57
    public function isEnabled(): bool
58
    {
59
        return $this->enabled;
60
    }
61
}
62