/** * @param self $other * @return bool */ public function hasEqualOrLowerLoaComparedTo(self $other) { return $this->getLevel() <= $other->getLevel(); }
/** * @param StartVettingProcedureCommand $command * @return bool */ public function isLoaSufficientToStartProcedure(StartVettingProcedureCommand $command) { $secondFactorType = new SecondFactorType($command->secondFactor->type); return $secondFactorType->isSatisfiedBy($command->authorityLoa); }