Skip to content

Commit d682537

Browse files
author
Greg Bowler
committed
Show nullable types in example
1 parent bb6712a commit d682537

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Throughout PHP.Gt repositories, wherever an object represents enclosed data, a c
66
The following methods are defined by this interface:
77

88
+ `get(string $name):mixed` - A non-type-safe getter, used for getting keys that are not of an inbuilt type
9-
+ `getString(string $name):string`
10-
+ `getInt(string $name):int`
11-
+ `getFloat(string $name):float`
12-
+ `getBool(string $name):bool`
13-
+ `getDateTime(string $name):DateTimeInterface`
9+
+ `getString(string $name):?string`
10+
+ `getInt(string $name):?int`
11+
+ `getFloat(string $name):?float`
12+
+ `getBool(string $name):?bool`
13+
+ `getDateTime(string $name):?DateTimeInterface`
1414

1515
Common areas you will see this interface used:
1616

0 commit comments

Comments
 (0)