src/Metadata/Property/PropertyMetadata.php
public function withType(Type $type): self
    {
        $metadata = clone $this;
        $metadata->type = $type;

        return $metadata;
    }
public function withType(Type $type): self
    {
        $metadata = clone $this;
        $metadata->type = $type;

        return $metadata;
    }
public function withType ( Type $ type ) : self { $ metadata = clone $ this ; $ metadata -> type = $ type ; return $ metadata ; }
Returns a new instance with the given type.
Returns a new instance with the given type .