public function setProperties(array $properties) { $this->properties = json_encode($properties); return $this; }