public function __construct($multiplicand, $multiplier)
{
if (!is_a($multiplicand, "Charclass") && !is_a($multiplicand, "Pattern")) {
throw new Exception("Not a Charclass or Pattern: " . var_export($multiplicand, true));
}
if (!is_a($multiplier, "Multiplier")) {
throw new Exception("Not a Multiplier: " . var_export($multiplier, true));
}
$this->multiplicand = $multiplicand;
$this->multiplier = $multiplier;
}