/** * {@inheritdoc} */ public function expect($type, $rule, $key, array $expected) { if ($type === self::ARecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getARecords()); } else { if ($type === self::AAAARecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getAAAARecords()); } else { if ($type === self::MXRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getMXRecords()); } else { if ($type === self::TXTRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getTXTRecords()); } else { if ($type === self::NSRecords) { $this->check($type, $rule, $key, $expected, $this->DNSCollection->getNSRecords()); } } } } } return $this; }