Skip to content

Commit abee935

Browse files
committed
chore: translates command pattern
1 parent e55e145 commit abee935

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Singleton Pattern ensures that a class has only one instance and provides a glob
5858
php src/Singleton/client.php
5959
```
6060
### Command pattern
61-
Il Command pattern incapsula una richiesta (un comando) legando insieme un insieme di azioni che devono essere eseguite
62-
su un destinatario (un receiver).
61+
Command pattern encapsulates a request (a command) by binding together a set of actions to be performed
62+
on a recipient (a receiver).
6363
```
6464
php src/Command/Simple/client.php
6565
php src/Command/Advance/client.php

src/Command/Advance/Command/CeilingFanOffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class CeilingFanOffCommand implements Command
1010
{
11-
private $ceilingFan;
11+
private CeilingFan $ceilingFan;
1212

1313
public function __construct(CeilingFan $ceilingFan)
1414
{

src/Command/Advance/Command/CeilingFanOnCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class CeilingFanOnCommand implements Command
1010
{
11-
private $ceilingFan;
11+
private CeilingFan $ceilingFan;
1212

1313
public function __construct(CeilingFan $ceilingFan)
1414
{

src/Command/Advance/Command/LightOffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class LightOffCommand implements Command
1010
{
11-
private $light;
11+
private Light $light;
1212

1313
public function __construct(Light $light)
1414
{

src/Command/Advance/Command/LightOnCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class LightOnCommand implements Command
1010
{
11-
private $light;
11+
private Light $light;
1212

1313
public function __construct(Light $light)
1414
{

src/Command/Advance/Command/StereoOffCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class StereoOffCommand implements Command
1010
{
11-
private $stereo;
11+
private Stereo $stereo;
1212

1313
public function __construct(Stereo $stereo)
1414
{

src/Command/Advance/Command/StereoOnWithCDCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class StereoOnWithCDCommand implements Command
1010
{
11-
private $stereo;
11+
private Stereo $stereo;
1212

1313
public function __construct(Stereo $stereo)
1414
{

0 commit comments

Comments
 (0)