Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function __construct($enabled = true, array $throttle = [], array $methods = []) |
||
24 | { |
||
25 | if (\is_array($enabled)) { |
||
26 | // supports doctrine annotations |
||
27 | foreach ($enabled as $key => $value) { |
||
28 | $this->$key = $value; |
||
29 | } |
||
30 | } else { |
||
31 | $this->enabled = $enabled; |
||
32 | $this->throttle = $throttle; |
||
33 | $this->methods = $methods; |
||
34 | } |
||
54 |