Skip to content

Instantly share code, notes, and snippets.

@rgomezcasas
Created September 18, 2017 18:08
Show Gist options
  • Select an option

  • Save rgomezcasas/f2c10174a194c4a233b4bee3f06a1ccf to your computer and use it in GitHub Desktop.

Select an option

Save rgomezcasas/f2c10174a194c4a233b4bee3f06a1ccf to your computer and use it in GitHub Desktop.

Revisions

  1. rgomezcasas created this gist Sep 18, 2017.
    23 changes: 23 additions & 0 deletions RenameUserCommand.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <?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;
    }
    }