public function addLabel($label) { if (is_null($this->labels)) { $this->labels = array(); } array_push($this->labels, $label); return $this; }