public function getLastLevel() { if ($this->lastLevel === null) { $this->lastLevel = $this->tsValue('lastLevel'); if ($this->lastLevel > self::MAXIMUM_LEVELS_LIMIT) { $this->lastLevel = self::MAXIMUM_LEVELS_LIMIT; } } return $this->lastLevel; }