Skip to content

Commit f05b58a

Browse files
appsengkamranahmedse
authored andcommitted
Add $roles to composite pattern (kamranahmedse#86)
composite pattern: added protected variable $roles in two classes implementing the class Employee
1 parent 99f1d72 commit f05b58a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ class Developer implements Employee
792792
{
793793
protected $salary;
794794
protected $name;
795-
795+
protected $roles;
796+
796797
public function __construct(string $name, float $salary)
797798
{
798799
$this->name = $name;
@@ -824,6 +825,7 @@ class Designer implements Employee
824825
{
825826
protected $salary;
826827
protected $name;
828+
protected $roles;
827829

828830
public function __construct(string $name, float $salary)
829831
{

0 commit comments

Comments
 (0)