/**
  * MakeUserSubAdminOfGroup constructor.
  *
  * @param string $userName
  * @param string $groupId
  */
 public function __construct($userName = '', $groupId = '')
 {
     Assertion::notEmpty($userName, 'Username is a required field to add a user to a group');
     Assertion::notEmpty($groupId, 'Group id is a required field to add a user to a group');
     $this->userName = $userName;
     $this->groupId = $groupId;
 }
コード例 #2
0
 /**
  * FindGroup constructor.
  *
  * @param string $groupId
  */
 public function __construct($groupId = '')
 {
     Assertion::notEmpty($groupId, 'Group id is a required field to get a group');
     $this->groupId = $groupId;
 }
コード例 #3
0
 /**
  * FindGroups constructor.
  *
  * @param string $searchGroup
  */
 public function __construct($searchGroup = '')
 {
     Assertion::notEmpty($searchGroup, 'Group to search for is a required field to find a group');
     $this->searchGroup = $searchGroup;
 }
 /**
  * FindSubAdminGroupsOfUser constructor.
  *
  * @param string $userName
  */
 public function __construct($userName = '')
 {
     Assertion::notEmpty($userName, 'Username is a required field to find a user');
     $this->userName = $userName;
 }