for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the BenGorUser package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace BenGorUser\User\Application\Command\RevokeRole;
/**
* Revoke user role command class.
* @author Beñat Espiña <[email protected]>
class RevokeUserRoleCommand
{
* The user id.
* @var string
private $id;
* The role.
private $role;
* Constructor.
* @param string $anId The user id
* @param string $aRole The role
public function __construct($anId, $aRole)
$this->id = $anId;
$this->role = $aRole;
}
* Gets the user id.
* @return string
public function id()
return $this->id;
* Gets the role.
public function role()
return $this->role;