Skip to content

Commit

Permalink
#2 numeric type (#8)
Browse files Browse the repository at this point in the history
* Update informations
* Make errors parameter in result constructor optional
* Add new section in readme
* Add implementation and specification for numeric type
  • Loading branch information
Christian Blank authored Jan 9, 2017
1 parent 5bdfb1d commit 9b2c197
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,23 @@ $result = Checker::fulfills($data, $requirement);
```
The returned object holds information about the analysis. You can
check the result by calling `isValid()` on the result object. To
fetch the errors, simply call `getErrors`.
fetch the errors, simply call `getErrors`.

## Supported Types

Currently the following types are supported:

* Any
* Nullable
* Bool
* Numeric
* Float
* Int
* String
* Object
* List

There are some open issues with ideas for more types. Feel free to send pull requests.

Additionally you can implement the `TypeInterface` and use your own type implementations.

0 comments on commit 9b2c197

Please sign in to comment.