public function addFact($key, $value) { $fact = new stdClass(); $fact->key = $key; $fact->value = $value; $this->content->facts[] = $fact; }