1 | <?php |
||
13 | final class DaemonOptions implements DaemonOptionsInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $options; |
||
19 | |||
20 | /** |
||
21 | * Constructor. |
||
22 | * |
||
23 | * The value of the LOGGER option must implement the PSR-3 LoggerInterface. |
||
24 | * |
||
25 | * For the REQUEST_LIMIT, MEMORY_LIMIT and TIME_LIMIT options, NO_LIMIT can |
||
26 | * be used to specify that these metrics should not cause the daemon to |
||
27 | * shutdown. |
||
28 | * |
||
29 | * @param array $options The options to configure the daemon with |
||
30 | * |
||
31 | * @throws \InvalidArgumentException On unrecognised option |
||
32 | */ |
||
33 | public function __construct(array $options = []) |
||
56 | |||
57 | public function getOption(string $option) |
||
65 | } |
||
66 |