ApiPlatform\Core\Metadata\Resource\ResourceMetadata::withAttributes PHP Метод

withAttributes() публичный метод

Returns a new instance with the given attribute.
public withAttributes ( array $attributes ) : self
$attributes array
Результат self
    public function withAttributes(array $attributes) : self
    {
        $metadata = clone $this;
        $metadata->attributes = $attributes;
        return $metadata;
    }