-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (24 loc) · 753 Bytes
/
index.php
File metadata and controls
24 lines (24 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
try {
require_once dirname(__FILE__) . '/UserBuilder.php';
$admin = new UserBuilder;
$admin->setName('Steve Lee')
->setAge(11)
->setLocation('HCM, Viet Nam')
->setLevel('Technical Leader')
->setTodo('admin');
print_r('<br/>-------- first build ------- <br/>');
print_r($admin->build());
print_r('<br/>-------- next build ------- <br/>');
$admin->setName('Steve Jobs')
->setLocation('Silicon valley, US')
->setTodo('member');
print_r($admin->build());
print_r('<br/>-------- next build ------- <br/>');
$admin->setName('Bill Gates')
->setTodo('member');
print_r($admin->build());
} catch (\Exception $e) {
echo "Debug<br/>";
print_r($e);
}