| 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 | * @var float How long the connection can be open before it times out. |
||
| 28 | */ |
||
| 29 | private $connectionTimeout; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Config constructor. |
||
| 33 | * |
||
| 34 | * @param int $level |
||
| 35 | * @param bool $doesBubble |
||
| 36 | */ |
||
| 37 | 4 | public function __construct($level, $doesBubble = true) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param int $level |
||
| 46 | * |
||
| 47 | * @return self |
||
| 48 | */ |
||
| 49 | 4 | private function setLevel($level) |
|
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | */ |
||
| 71 | 1 | public function getLevel() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritdoc} |
||
| 78 | */ |
||
| 79 | 1 | public function doesBubble() |
|
| 83 | } |
||
| 84 |