speed = $speed; } else { $this->speed = null; } return $this; } public function getSpeed() { return $this->speed; } public function setManualTrigger($value = false) { if (is_bool($value)) { $this->hasManualTrigger = $value; } return $this; } public function hasManualTrigger() { return $this->hasManualTrigger; } public function setTimeTrigger($value = false, $advanceTime = 1000) { if (is_bool($value)) { $this->hasTimeTrigger = $value; } $this->advanceTimeTrigger = null; if ($this->hasTimeTrigger === true) { $this->advanceTimeTrigger = (int) $advanceTime; } return $this; } public function hasTimeTrigger() { return $this->hasTimeTrigger; } public function getAdvanceTimeTrigger() { return $this->advanceTimeTrigger; } public function setTransitionType($type = null) { $this->transitionType = $type; return $this; } public function getTransitionType() { return $this->transitionType; } }