public function withAttributes(array $attributes) : self { $metadata = clone $this; $metadata->attributes = $attributes; return $metadata; }