/** * determines if another level is equal to this level. * @param Level $level the level to compare with * @return bool <b>TRUE</b> if $level matches this level, <b>FALSE</b> otherwise. */ public function equals($level) { return $level instanceof Level && $this->level == $level->getIntLevel(); }