Created
September 18, 2017 18:08
-
-
Save rgomezcasas/f2c10174a194c4a233b4bee3f06a1ccf to your computer and use it in GitHub Desktop.
Command Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class RenameUserCommand extends Command | |
{ | |
private $userId; | |
private $newName; | |
public function __construct(string $userId, string $newName) | |
{ | |
$this->userId = $userId; | |
$this->newName = $newName; | |
} | |
public function userId(): string | |
{ | |
return $this->userId; | |
} | |
public function newName(): string | |
{ | |
return $this->newName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment