public function withProperty(string $key, $value) { $this->properties->put($key, $value); return $this; }