Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (c) Flipbox Digital Limited | ||
* @license https://flipboxfactory.com/software/organization/license | ||
* @link https://www.flipboxfactory.com/software/organization/ | ||
*/ | ||
|
||
namespace flipbox\organizations\queries; | ||
|
||
/** | ||
* @author Flipbox Factory <hello@flipboxfactory.com> | ||
* @since 1.0.0 | ||
*/ | ||
trait UserStateAttributeTrait | ||
{ | ||
/** | ||
* The user state(s) that the resulting organizations’ users must be in. | ||
* | ||
* @var string|string[]|null | ||
*/ | ||
public $userState; | ||
|
||
/** | ||
* @param string|string[]|int|int[]|null $value | ||
* @return static The query object | ||
*/ | ||
public function setUserState($value) | ||
{ | ||
$this->userState = $value; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @param string|string[]|int|int[]|null $value | ||
* @return static The query object | ||
*/ | ||
public function userState($value) | ||
{ | ||
return $this->setUserState($value); | ||
} | ||
} |