NZTA\SDLT\Helper\SecurityRiskAssessmentCalculator::calculateCurrentLikelihoodScore
Calculate the current likelihood score for this aspect (or risk, if no aspects) We start with 100, then deduct the implemented weights. THEN we add the penalties. The result will be the greater of 1 and that number.
With the penalties applied it is possible for the likelihood to exceed 100, which is still acceptable
Signature
public function calculateCurrentLikelihoodScore(int
$sumOfLikelihoodWeights,
int
$sumOfLikelihoodPenalties )
Parameters
$sumOfLikelihoodWeights
— int- sum of likelihood weight
$sumOfLikelihoodPenalties
— int- sum of likelihood penalties
Returns
- int