public function fromRaw($properties) { $this->validateProperties($properties); foreach ($properties as $property => $value) { $this->properties[$property] = $value; } }