public function parseAnswer(Message $message)
    {
        $record = $this->parseRecord($message);
        if ($record === null) {
            return null;
        }

        $message->answers[] = $record;

        if ($message->header->get('anCount') != count($message->answers)) {
            return $this->parseAnswer($message);
        }

        return $message;
    }
public function parseAnswer(Message $message)
    {
        $record = $this->parseRecord($message);
        if ($record === null) {
            return null;
        }

        $message->answers[] = $record;

        if ($message->header->get('anCount') != count($message->answers)) {
            return $this->parseAnswer($message);
        }

        return $message;
    }
public function parseAnswer ( Message $ message ) { $ record = $ this -> parseRecord ( $ message ) ; if ( $ record === null ) { return null ; } $ message -> answers [ ] = $ record ; if ( $ message -> header -> get ( 'anCount' ) != count ( $ message -> answers ) ) { return $ this -> parseAnswer ( $ message ) ; } return $ message ; }
recursively parse all answers from the message data into message answer records

@param Message $message
@return ?Message returns the updated message on success or null if the data is invalid/incomplete
@deprecated unused, exists for BC only
@codeCoverageIgnore
recursively parse all answers from the message data into message answer records