Skip to content

Commit c78b412

Browse files
committed
[3.0] Introduce Options class representing supported resolv.conf options
The two current supported options, `attempts` and `timeout`, have their min (assumed to be `1`), max, and default value as specified on https://man7.org/linux/man-pages/man5/resolv.conf.5.html set.
1 parent 30c5e43 commit c78b412

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Config/Options.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace React\Dns\Config;
4+
5+
final class Options
6+
{
7+
/**
8+
* @var int<1, 5>
9+
*/
10+
public $attempts = 2;
11+
/**
12+
* @var int<1, 30>
13+
*/
14+
public $timeout = 5;
15+
}

0 commit comments

Comments
 (0)