/**
  * Create a new instance of InterpolationTable.
  * 
  * @param InterpolationTableEntryCollection $interpolationTableEntries A collection of InterpolationTableEntry objects.
  * @param mixed $defaultValue The default oucome value to be used when no matching table entry is found.
  * @throws InvalidArgumentException If $interpolationTableEntries is an empty collection.
  */
 public function __construct(InterpolationTableEntryCollection $interpolationTableEntries, $defaultValue = null)
 {
     parent::__construct($defaultValue);
     $this->setInterpolationTableEntries($interpolationTableEntries);
 }
Beispiel #2
0
 /**
  * Create a new instance of MatchTable.
  *
  * @param \qtism\data\state\MatchTableEntryCollection $matchTableEntries A collection of MatchTableEntry objects.
  * @param mixed $defaultValue The default oucome value to be used when no matching table entry is found.
  * @throws \InvalidArgumentException If $matchTableEntries is an empty collection.
  */
 public function __construct(MatchTableEntryCollection $matchTableEntries, $defaultValue = null)
 {
     parent::__construct($defaultValue);
     $this->setMatchTableEntries($matchTableEntries);
 }