/** * Adds a #Const directive to the ManiaScript. * @param string $name The name of the constant. * @param string $value The value of the constant. * @return $this Implementing fluent interface. */ public function addConstant($name, $value) { $constant = new Constant(); $constant->setName($name)->setValue($value); $this->builder->addDirective($constant); return $this; }