Skip to content

Commit cff6776

Browse files
hoang leehoang lee
hoang lee
authored and
hoang lee
committed
CI Public
1 parent 80cec0e commit cff6776

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# Description
66
This module will support create user with : name, age, location, level, todo. This module is Builder Pattern of PHP
77
<code>
8-
( [name] => Hoang Lee [age] => 29 [location] => HCM, Viet Nam [todo] => {"post":{"update":true,"delete":false,"create":true,"view_all":false},"page":{"update":true,"delete":false,"create":true,"view_all":false},"setting":{"update":false,"create":false}} )
8+
Array ( [name] => Hoang Lee [age] => 29 [location] => HCM, Viet Nam [level] => Technical Leader [todo] => { "post": { "update": true, "delete": true, "create": true, "view_all": true }, "page": { "update": true, "delete": true, "create": true, "view_all": true }, "setting": { "update": true, "create": true } } )
99
</code>
10-
10+
1111
# install composer
1212
<code>php composer.phar install</code>
1313

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$builder->setName('Hoang Lee');
66
$builder->setAge(29);
77
$builder->setLocation('HCM, Viet Nam');
8+
$builder->setLevel('Technical Leader');
89
$builder->setTodo('admin');
910
$builder->build();
1011
print_r($builder->data);

0 commit comments

Comments
 (0)