setName($name); $this->setText($text); } /** * Set the Name * * @param string $name Function Name * @return \FML\Script\ScriptFunction */ public function setName($name) { $this->name = (string)$name; return $this; } /** * Set the Text * * @param string $text Function Text * @return \FML\Script\ScriptFunction */ public function setText($text) { $this->text = (string)$text; return $this; } /** * Get the Script Function Text * * @return string */ public function __toString() { return $this->text; } }