public function setTransitionId($id) { if (is_null($this->transition)) { $this->transition = array(); } $this->transition['id'] = $id; }