Completed
Push — 1.0 ( 046da8...d5bf3f )
by Paweł
07:50
created

Rule::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Superdesk Web Publisher Rule Component.
5
 *
6
 * Copyright 2016 Sourcefabric z.ú. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2016 Sourcefabric z.ú
12
 * @license http://www.superdesk.org/license
13
 */
14
15
namespace SWP\Component\Rule\Model;
16
17
class Rule implements RuleInterface
18
{
19
    /**
20
     * @var mixed
21
     */
22
    protected $id;
23
24
    /**
25
     * @var string
26
     */
27
    protected $expression;
28
29
    /**
30
     * @var int
31
     */
32
    protected $priority;
33
34
    /**
35
     * @var array
36
     */
37
    protected $configuration = [];
38
39
    /**
40
     * @var string
41
     */
42
    protected $description;
43
44
    /**
45
     * @var string
46
     */
47
    protected $name;
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
    /**
58
     * {@inheritdoc}
59
     */
60
    public function getExpression()
61
    {
62
        return $this->expression;
63
    }
64
65
    /**
66
     * {@inheritdoc}
67
     */
68
    public function setExpression($expression)
69
    {
70
        $this->expression = $expression;
71
    }
72
73
    public function getPriority()
74
    {
75
        return $this->priority;
76
    }
77
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function setPriority($priority)
82
    {
83
        $this->priority = $priority;
84
    }
85
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function getConfiguration()
90
    {
91
        return $this->configuration;
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function setConfiguration(array $configuration)
98
    {
99
        $this->configuration = $configuration;
100
    }
101
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function getDescription()
106
    {
107
        return $this->description;
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function setDescription($description)
114
    {
115
        $this->description = $description;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function getName()
122
    {
123
        return $this->name;
124
    }
125
126
    /**
127
     * {@inheritdoc}
128
     */
129
    public function setName($name)
130
    {
131
        $this->name = $name;
132
    }
133
}
134