public function addTimer($name, $code, $priority = 5, $inline = false) {
        $timer = new Timer();
        $timer->setName($name)
               ->setCode($code)
               ->setPriority($priority)
               ->setInline($inline);
        $this->builder->addEvent($timer);
        return $this;
    }
public function addTimer($name, $code, $priority = 5, $inline = false) {
        $timer = new Timer();
        $timer->setName($name)
               ->setCode($code)
               ->setPriority($priority)
               ->setInline($inline);
        $this->builder->addEvent($timer);
        return $this;
    }
public function addTimer ( $ name , $ code , $ priority = 5 , $ inline = false ) { $ timer = new Timer ( ) ; $ timer -> setName ( $ name ) -> setCode ( $ code ) -> setPriority ( $ priority ) -> setInline ( $ inline ) ; $ this -> builder -> addEvent ( $ timer ) ; return $ this ; }
Adds a timer handler to the ManiaScript.
@param string $name The name of the timer.
@param string $code The code to be executed.
@param int $priority The priority, 0 for most important, bigger for less important.
@param boolean $inline Whether this event is handled inline, i.e. without wrapping function.
@return $this Implementing fluent interface.
Adds a timer handler to the ManiaScript .