NZTA\SDLT\Model\LikelihoodThreshold
Class LikelihoodThreshold. Represents an admin-managed record for calculation of Likelihood Ratings.
Synopsis
class LikelihoodThreshold
extends DataObject
{
- // members
- private static string $default_sort = 'Value ASC, Operator ASC';
- private static array $has_one = ;
- private static array $belongs_to = ;
- private static string $table_name = 'LikelihoodThreshold';
- // methods
- public FieldList getCMSFields()
- public ValidationResult validate()
- public static mixed match()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_to — array
- $default_sort
—
string
The list of likelihood thresholds must be a sorted list This means we can exit the calculator as soon as the first condition is met - $has_one — array
- $table_name — string
Methods
public
- getCMSFields()
- match() — If $operator and $operand match an likelihood-rating, return it.
- validate()