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