1 | <?php |
||
19 | class Configuration implements ConfigurationInterface |
||
20 | { |
||
21 | /** |
||
22 | * RuleSet |
||
23 | * |
||
24 | * @var RuleSet |
||
25 | */ |
||
26 | private $ruleset; |
||
27 | |||
28 | /** |
||
29 | * @var PathConfiguration |
||
30 | */ |
||
31 | private $path; |
||
32 | |||
33 | /** |
||
34 | * Condition of failure |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | private $failureCondition; |
||
39 | |||
40 | /** |
||
41 | * Targets of logging |
||
42 | * |
||
43 | * @var LoggingConfiguration |
||
44 | */ |
||
45 | private $logging = array(); |
||
46 | |||
47 | /** |
||
48 | * @var TemplateConfiguration |
||
49 | */ |
||
50 | private $template; |
||
51 | |||
52 | /** |
||
53 | * @var bool |
||
54 | */ |
||
55 | private $ignoreErrors = false; |
||
56 | |||
57 | /** |
||
58 | * Constructor |
||
59 | */ |
||
60 | public function __construct() { |
||
67 | |||
68 | /** |
||
69 | * @param \Hal\Application\Rule\RuleSet $ruleset |
||
70 | * @return self |
||
71 | */ |
||
72 | public function setRuleSet(RuleSet $ruleset) |
||
77 | |||
78 | /** |
||
79 | * @return \Hal\Application\Rule\RuleSet |
||
80 | */ |
||
81 | public function getRuleSet() |
||
85 | |||
86 | /** |
||
87 | * @param string $failureCondition |
||
88 | * @return self |
||
89 | */ |
||
90 | public function setFailureCondition($failureCondition) |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getFailureCondition() |
||
103 | |||
104 | /** |
||
105 | * @param LoggingConfiguration $logging |
||
106 | * @return self |
||
107 | */ |
||
108 | public function setLogging(LoggingConfiguration $logging) |
||
113 | |||
114 | /** |
||
115 | * @return LoggingConfiguration |
||
116 | */ |
||
117 | public function getLogging() |
||
121 | |||
122 | /** |
||
123 | * @param PathConfiguration $path |
||
124 | * @return self |
||
125 | */ |
||
126 | public function setPath($path) |
||
131 | |||
132 | /** |
||
133 | * @return PathConfiguration |
||
134 | */ |
||
135 | public function getPath() |
||
139 | |||
140 | /** |
||
141 | * @param TemplateConfiguration $template |
||
142 | * @return self |
||
143 | */ |
||
144 | public function setTemplate($template) |
||
149 | |||
150 | /** |
||
151 | * @return TemplateConfiguration |
||
152 | */ |
||
153 | public function getTemplate() |
||
157 | |||
158 | /** |
||
159 | * @return boolean |
||
160 | */ |
||
161 | public function getIgnoreErrors() |
||
165 | |||
166 | /** |
||
167 | * @param boolean $ignoreErrors |
||
168 | * @return $this |
||
169 | */ |
||
170 | public function setIgnoreErrors($ignoreErrors) |
||
175 | |||
176 | |||
177 | } |