Code Duplication    Length = 9-9 lines in 2 locations

src/Address/Address.php 2 locations

@@ 65-73 (lines=9) @@
62
        return $this->streetAddress;
63
    }
64
65
    public function serialize(): array
66
    {
67
        return [
68
          'streetAddress' => $this->streetAddress->toNative(),
69
          'postalCode' => $this->postalCode->toNative(),
70
          'addressLocality' => $this->locality->toNative(),
71
          'addressCountry' => $this->countryCode,
72
        ];
73
    }
74
75
    public static function deserialize(array $data): Address
76
    {
@@ 85-93 (lines=9) @@
82
        );
83
    }
84
85
    public function toJsonLd(): array
86
    {
87
        return [
88
            'addressCountry' => $this->countryCode,
89
            'addressLocality' => $this->locality->toNative(),
90
            'postalCode' => $this->postalCode->toNative(),
91
            'streetAddress' => $this->streetAddress->toNative(),
92
        ];
93
    }
94
95
    public function sameAs(Address $otherAddress): bool
96
    {