setName($name); $this->setValue($value); } /** * Set the Name * * @param string $name Constant Name * @return \FML\Script\ScriptConstant */ public function setName($name) { $this->name = $name; return $this; } /** * Set the Value * * @param string $value Constant Value * @return \FML\Script\ScriptConstant */ public function setValue($value) { $this->value = $value; return $this; } /** * Build the Script Constant Text * * @return string */ public function __toString() { $scriptText = Builder::getConstant($this->name, $this->value); return $scriptText; } }