private function buildProperties(
        MapInterface $changeset,
        MapInterface $properties
    ): MapInterface {
        return $changeset->filter(static function(string $property) use ($properties) {
            return $properties->contains($property);
        });
    }
private function buildProperties(
        MapInterface $changeset,
        MapInterface $properties
    ): MapInterface {
        return $changeset->filter(static function(string $property) use ($properties) {
            return $properties->contains($property);
        });
    }
private function buildProperties ( MapInterface $ changeset , MapInterface $ properties ) : MapInterface { return $ changeset -> filter ( static function ( string $ property ) use ( $ properties ) { return $ properties -> contains ( $ property ) ; } ) ; }
Build a collection with only the elements that are properties

@param MapInterface<string, mixed> $changeset
@param MapInterface<string, Property> $properties

@return MapInterface<string, mixed>
Build a collection with only the elements that are properties