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

TemplateBlock::getTemplate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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