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