| 1 | <?php |
||
| 14 | class Config implements ConfigInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var int The lowest level that we should listen to. |
||
| 18 | */ |
||
| 19 | private $level; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var bool Do the events need to bubble further. |
||
| 23 | */ |
||
| 24 | private $doesBubble; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Config constructor. |
||
| 28 | * |
||
| 29 | * @param int $level |
||
| 30 | * @param bool $doesBubble |
||
| 31 | */ |
||
| 32 | 6 | public function __construct($level, $doesBubble = true) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param int $level |
||
| 40 | * |
||
| 41 | * @return self |
||
| 42 | */ |
||
| 43 | 6 | private function setLevel($level) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 3 | public function getLevel() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 3 | public function doesBubble() |
|
| 77 | } |
||
| 78 |