
Public Member Functions | |
| setNotFoundValue ($objNotFoundValue) | |
| getNotFoundValue () | |
| found ($objName) | |
| match ($objName) | |
One match implementation deal with names <name> and with values <value>.
What value the match method MatchInterface::match() will returns it is customizable to each implementation of this interface.
When MatchInterface::found() method be called, the class should returns true , when the matching process be successfuly or false , otherwise.
When MatchInterface::match() method be called, the matching process should return the value of the matching sucessfuly process.
Case, the received name be unable to match sucessfuly, the MatchInterface::match() should return the NotFoundValue informed into the MatchInterface::setNotFoundValue().
Definition at line 31 of file MatchInterface.interface.php.
| found | ( | $ | objName | ) |
Match the name received and returns true if successfully match or false otherwise.
| object | <name> $objName |
Implemented in MatchGatekeeper, MatchGroup, MatchName, and MatchRegularExpression.
| getNotFoundValue | ( | ) |
Get the not found value.
This value will be returned when the name received don't match with any element into the item list in the match() method
Implemented in MatchGatekeeper, MatchGroup, MatchName, and MatchRegularExpression.
| match | ( | $ | objName | ) |
When MatchInterface::match() method be called, the matching process should return the <value> of the matching sucessfuly process.
Case, the received <name> be unable to match sucessfuly, the MatchInterface::match() should return the NotFoundValue informed into the MatchInterface::setNotFoundValue().
| object | <name> $objName |
Implemented in MatchGatekeeper, MatchGroup, MatchName, and MatchRegularExpression.
| setNotFoundValue | ( | $ | objNotFoundValue | ) |
Set the not found value.
Changing this value will change how the result of the match() method when not item match with the received name
| object | $objNotFoundValue |
Implemented in MatchGatekeeper, MatchGroup, MatchName, and MatchRegularExpression.
1.5.9