/** * Sets the text style of the tooltip. * * @param textStyle Valid textStyle object. * @return \tooltip */ public function textStyle($textStyle) { if (Helpers::is_textStyle($textStyle)) { $this->textStyle = $textStyle->values(); } else { $this->type_error(__FUNCTION__, 'object', 'class (textStyle)'); } return $this; }
/** * An object that specifies the title text style. create a new textStyle() * object, set the values then pass it to this function or to the constructor. * * @param textStyle $textStyleObj * @return \Chart */ public function titleTextStyle($textStyleObj) { if (Helpers::is_textStyle($textStyleObj)) { $this->addOption(array('titleTextStyle' => $textStyleObj->values())); } else { $this->type_error(__FUNCTION__, 'textStyle'); } return $this; }