Skip to content

Commit 9b2c197

Browse files
author
Christian Blank
authored
#2 numeric type (#8)
* Update informations * Make errors parameter in result constructor optional * Add new section in readme * Add implementation and specification for numeric type
1 parent 5bdfb1d commit 9b2c197

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,23 @@ $result = Checker::fulfills($data, $requirement);
5454
```
5555
The returned object holds information about the analysis. You can
5656
check the result by calling `isValid()` on the result object. To
57-
fetch the errors, simply call `getErrors`.
57+
fetch the errors, simply call `getErrors`.
58+
59+
## Supported Types
60+
61+
Currently the following types are supported:
62+
63+
* Any
64+
* Nullable
65+
* Bool
66+
* Numeric
67+
* Float
68+
* Int
69+
* String
70+
* Object
71+
* List
72+
73+
There are some open issues with ideas for more types. Feel free to send pull requests.
74+
75+
Additionally you can implement the `TypeInterface` and use your own type implementations.
76+

0 commit comments

Comments
 (0)