public function getLevelName($level)
    {
        if (!is_int($level)) {
            throw new \Plop\Exception('Invalid level value');
        }
        if (!isset($this->levelNames[$level])) {
            return "Level $level";
        }
        return $this->levelNames[$level];
    }
public function getLevelName($level)
    {
        if (!is_int($level)) {
            throw new \Plop\Exception('Invalid level value');
        }
        if (!isset($this->levelNames[$level])) {
            return "Level $level";
        }
        return $this->levelNames[$level];
    }
public function getLevelName ( $ level ) { if ( ! is_int ( $ level ) ) { throw new \ Plop \ Exception ( 'Invalid level value' ) ; } if ( ! isset ( $ this -> levelNames [ $ level ] ) ) { return "Level $level" ; } return $ this -> levelNames [ $ level ] ; }
Return the name of a level given its value.

\param int $level
Level for which a name must be returned.

\retval string
Name for the given level.

\note
If the level was not given a specific name
(ie. Plop::addLevelName() was not called first),
"Level $level" is returned.
Return the name of a level given its value .