ApiPlatform\Core\Metadata\Resource\ResourceMetadata::withDescription PHP Method

withDescription() public method

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