| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Client |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Afonso\Dns\SerializerInterface |
||
| 11 | */ |
||
| 12 | protected $serializer; |
||
| 13 | |||
| 14 | public function __construct(SerializerInterface $serializer = null) |
||
| 15 | { |
||
| 16 | if ($serializer === null) { |
||
| 17 | $serializer = new Serializer(); |
||
| 18 | } |
||
| 19 | $this->serializer = $serializer; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Queries the specified name server with data from the given request. |
||
| 24 | * |
||
| 25 | * @param \Afonso\Dns\Request $request |
||
| 26 | * @param string $nameserver The IP address of the resolver |
||
| 27 | * @return \Afonso\Dns\Response |
||
| 28 | */ |
||
| 29 | public function query(Request $request, string $nameserver): Response |
||
| 40 | } |
||
| 41 | } |
||
| 42 |