Hi Guys,
I have a interface and class as follows:
interface Math
{
public function calculate($value);
}
class Tax implements Math
{
public function calculate($value, $rate)
{
return ($value * (($rate / 100) + 1));
}
}
So my problem is that the calculate() method in the class has more parameters than that allowed by the interface.
How can I specify that the calculate() method can have multiple parameters, but must have the first $value parameter?
Any ideas?