public function getCombatLevel($float = false)
    {
        $stats = $this->getStats();

        return $this->api->calculateCombatLevel(
            $stats->findByClass(Attack::class)->getLevel(),
            $stats->findByClass(Strength::class)->getLevel(),
            $stats->findByClass(Magic::class)->getLevel(),
            $stats->findByClass(Ranged::class)->getLevel(),
            $stats->findByClass(Defence::class)->getLevel(),
            $stats->findByClass(Constitution::class)->getLevel(),
            $stats->findByClass(Prayer::class)->getLevel(),
            $stats->findByClass(Summoning::class)->getLevel(),
            $float
        );
    }
public function getCombatLevel($float = false)
    {
        $stats = $this->getStats();

        return $this->api->calculateCombatLevel(
            $stats->findByClass(Attack::class)->getLevel(),
            $stats->findByClass(Strength::class)->getLevel(),
            $stats->findByClass(Magic::class)->getLevel(),
            $stats->findByClass(Ranged::class)->getLevel(),
            $stats->findByClass(Defence::class)->getLevel(),
            $stats->findByClass(Constitution::class)->getLevel(),
            $stats->findByClass(Prayer::class)->getLevel(),
            $stats->findByClass(Summoning::class)->getLevel(),
            $float
        );
    }
public function getCombatLevel ( $ float = false ) { $ stats = $ this -> getStats ( ) ; return $ this -> api -> calculateCombatLevel ( $ stats -> findByClass ( Attack :: class ) -> getLevel ( ) , $ stats -> findByClass ( Strength :: class ) -> getLevel ( ) , $ stats -> findByClass ( Magic :: class ) -> getLevel ( ) , $ stats -> findByClass ( Ranged :: class ) -> getLevel ( ) , $ stats -> findByClass ( Defence :: class ) -> getLevel ( ) , $ stats -> findByClass ( Constitution :: class ) -> getLevel ( ) , $ stats -> findByClass ( Prayer :: class ) -> getLevel ( ) , $ stats -> findByClass ( Summoning :: class ) -> getLevel ( ) , $ float ) ; }
Return the calculated combat level of this player

@param  bool $float
@return int
Return the calculated combat level of this player