public function getDuration() { if ($this->ProtectLevel !== 0) { return round($this->duration * (1 - 0.15 * $this->ProtectLevel)); } else { return $this->duration; } }