@@ -50,6 +50,6 @@ |
||
| 50 | 50 | $state = $pipeline |
| 51 | 51 | ->pipe(new SayHello) // Append "Hello!" to TextState |
| 52 | 52 | ->pipe(new SayMyNameIsAlessandro) // Append "My name is Alessandro" to TextState |
| 53 | - ->run(new TextState); // Pass an initial State |
|
| 53 | + ->run(new TextState); // Pass an initial State |
|
| 54 | 54 | |
| 55 | 55 | echo $state->get(); // Print: Hello! My name is Alessandro! |
| 56 | 56 | \ No newline at end of file |
@@ -41,6 +41,6 @@ |
||
| 41 | 41 | $state = $pipeline |
| 42 | 42 | ->pipe($sayHello) // Append "Hello!" to TextState |
| 43 | 43 | ->pipe($sayMyNameIsAlessandro) // Append "My name is Alessandro" to TextState |
| 44 | - ->run($state); // Pass an initial State |
|
| 44 | + ->run($state); // Pass an initial State |
|
| 45 | 45 | |
| 46 | 46 | echo $state->get(); // Print: Hello! My name is Alessandro! |
| 47 | 47 | \ No newline at end of file |