public function toArray(): array
    {
        return  [
            'countryCode' => $this->getCountryCode(),
            'vatNumber'   => $this->getVatNumber(),
            'requestDate' => $this->getRequestDate()->format('Y-m-d'),
            'valid'       => $this->isValid(),
            'name'        => $this->getName(),
            'address'     => $this->getAddress(),
            'identifier'  => $this->getIdentifier(),
            'nameMatch'   => $this->getNameMatch(),
            'companyTypeMatch' => $this->getCompanyTypeMatch(),
            'streetMatch' => $this->getStreetMatch(),
            'postcodeMatch' => $this->getPostcodeMatch(),
            'cityMatch' => $this->getCityMatch(),
        ];
    }
public function toArray(): array
    {
        return  [
            'countryCode' => $this->getCountryCode(),
            'vatNumber'   => $this->getVatNumber(),
            'requestDate' => $this->getRequestDate()->format('Y-m-d'),
            'valid'       => $this->isValid(),
            'name'        => $this->getName(),
            'address'     => $this->getAddress(),
            'identifier'  => $this->getIdentifier(),
            'nameMatch'   => $this->getNameMatch(),
            'companyTypeMatch' => $this->getCompanyTypeMatch(),
            'streetMatch' => $this->getStreetMatch(),
            'postcodeMatch' => $this->getPostcodeMatch(),
            'cityMatch' => $this->getCityMatch(),
        ];
    }
public function toArray ( ) : array { return [ 'countryCode' => $ this -> getCountryCode ( ) , 'vatNumber' => $ this -> getVatNumber ( ) , 'requestDate' => $ this -> getRequestDate ( ) -> format ( 'Y-m-d' ) , 'valid' => $ this -> isValid ( ) , 'name' => $ this -> getName ( ) , 'address' => $ this -> getAddress ( ) , 'identifier' => $ this -> getIdentifier ( ) , 'nameMatch' => $ this -> getNameMatch ( ) , 'companyTypeMatch' => $ this -> getCompanyTypeMatch ( ) , 'streetMatch' => $ this -> getStreetMatch ( ) , 'postcodeMatch' => $ this -> getPostcodeMatch ( ) , 'cityMatch' => $ this -> getCityMatch ( ) , ] ; }
Return this object as an array

@return array
Return this object as an array