Skip to content

Commit ad0ed33

Browse files
committed
Prototype example two complete.
1 parent 2246b01 commit ad0ed33

File tree

1 file changed

+5
-0
lines changed
  • SandersW-LearningPHPDesignPatterns/PrototypeTwo

1 file changed

+5
-0
lines changed

SandersW-LearningPHPDesignPatterns/PrototypeTwo/Client.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@ class Client {
1414

1515
public function __construct() {
1616
$this->makeConProto();
17+
1718
$Tess=clone $this->market;
1819
$this->setEmployee($Tess,"Tess Smith",101,"ts101-1234","tess.png");
1920
$this->showEmployee($Tess);
21+
2022
$Jacob=clone $this->market;
2123
$this->setEmployee($Jacob,"Jacob Jones",102,"jj101-2234","jacob.png");
2224
$this->showEmployee($Jacob);
25+
2326
$Ricky=clone $this->manage;
2427
$this->setEmployee($Ricky,"Ricky Rodriguez",203,"rr203-5634","ricky.png");
2528
$this->showEmployee($Ricky);
29+
2630
$Olivia=clone $this->engineer;
2731
$this->setEmployee($Olivia,"Olivia Perez",302,"op301-1278","olivia.png");
2832
$this->showEmployee($Olivia);
33+
2934
$John=clone $this->engineer;
3035
$this->setEmployee($John,"John Jackson",301,"jj302-1454","john.png");
3136
$this->showEmployee($John);

0 commit comments

Comments
 (0)