public function withIdentifier(bool $identifier) : self { $metadata = clone $this; $metadata->identifier = $identifier; return $metadata; }