Skip to content

Commit 48f181b

Browse files
committed
update doc
1 parent 83427ad commit 48f181b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ class UserBuilder extends FluentBuilder
6666

6767
You can convert the built instance to an array or an object using the `toArray()` and `toObject()` methods.
6868

69+
#### Return Array
70+
6971
```php
70-
// use and return an array
7172
$userArray = UserBuilder::build()
7273
->setName('PHP Builders')
7374
->setEmail('[email protected]')
@@ -77,8 +78,11 @@ $userArray = UserBuilder::build()
7778
getType($userArray) // Array
7879
$userArray['name'] // PHP Builders
7980
$userArray['email'] // [email protected]
81+
```
8082

81-
// use and return object
83+
#### Return Object
84+
85+
```php
8286
$userObject = UserBuilder::build()
8387
->setName('John Doe')
8488
->setEmail('[email protected]')

0 commit comments

Comments
 (0)