1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

rename classes to avoid confusion

This commit is contained in:
Peter Gribanov
2018-04-10 12:59:09 +03:00
committed by GitHub
parent 5492fa0916
commit 39d511f84a

View File

@@ -1810,7 +1810,7 @@ interface Employee
public function eat(): void;
}
class Human implements Employee
class HumanEmployee implements Employee
{
public function work(): void
{
@@ -1823,7 +1823,7 @@ class Human implements Employee
}
}
class Robot implements Employee
class RobotEmployee implements Employee
{
public function work(): void
{
@@ -1856,7 +1856,7 @@ interface Employee extends Feedable, Workable
{
}
class Human implements Employee
class HumanEmployee implements Employee
{
public function work(): void
{
@@ -1870,7 +1870,7 @@ class Human implements Employee
}
// robot can only work
class Robot implements Workable
class RobotEmployee implements Workable
{
public function work(): void
{