made function call less redundant
This commit is contained in:
parent
ca2237671a
commit
9e5acd7da8
@ -14,9 +14,7 @@
|
||||
|
||||
public abstract function evaluate();
|
||||
|
||||
protected function getFailureMessage() {
|
||||
return 'something';
|
||||
}
|
||||
protected abstract function getFailureMessage();
|
||||
|
||||
}
|
||||
|
||||
|
@ -20,6 +20,10 @@
|
||||
return $this->negateString($this->constraint->toString($message));
|
||||
}
|
||||
|
||||
protected function getFailureMessage() {
|
||||
throw new BadMethodCallException();
|
||||
}
|
||||
|
||||
protected function negateString($string) {
|
||||
return str_replace(
|
||||
array(
|
||||
|
Loading…
Reference in New Issue
Block a user