You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up on issue #36.
The idea is to write a script that automates the creation of custom parsers, custom exceptions and ideally other components in the library, so that something along the lines of...
namespace MPScholten\RequestParser;
class MyCustomParser extends AbstractValueParser
{
protected function describe()
{
// TODO: describe the expected input, e.g. "a valid IP address"
return "a ...";
}
protected function parse($value)
{
// TODO: handle type casting, validation, etc.
return (string) $value;
}
...
...
...
}
The text was updated successfully, but these errors were encountered:
This is a follow up on issue #36.
The idea is to write a script that automates the creation of custom parsers, custom exceptions and ideally other components in the library, so that something along the lines of...
...would create the following class:
The text was updated successfully, but these errors were encountered: