@@ 74-79 (lines=6) @@ | ||
71 | ||
72 | protected function extractResolver(ConnectorInterface $connector) |
|
73 | { |
|
74 | if ($connector instanceof Connector) { |
|
75 | $reflection = new ReflectionObject($connector); |
|
76 | $property = $reflection->getProperty('resolver'); |
|
77 | $property->setAccessible(true); |
|
78 | return $property->getValue($connector); |
|
79 | } |
|
80 | ||
81 | if ($connector instanceof DnsConnector) { |
|
82 | $reflection = new ReflectionObject($connector); |
|
@@ 81-86 (lines=6) @@ | ||
78 | return $property->getValue($connector); |
|
79 | } |
|
80 | ||
81 | if ($connector instanceof DnsConnector) { |
|
82 | $reflection = new ReflectionObject($connector); |
|
83 | $property = $reflection->getProperty('resolver'); |
|
84 | $property->setAccessible(true); |
|
85 | return $property->getValue($connector); |
|
86 | } |
|
87 | ||
88 | return null; |
|
89 | } |