diff options
Diffstat (limited to 'lib/private/Authentication/TwoFactorAuth/EnforcementState.php')
-rw-r--r-- | lib/private/Authentication/TwoFactorAuth/EnforcementState.php | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/EnforcementState.php b/lib/private/Authentication/TwoFactorAuth/EnforcementState.php index e02064bc8f7..66b5ce483f7 100644 --- a/lib/private/Authentication/TwoFactorAuth/EnforcementState.php +++ b/lib/private/Authentication/TwoFactorAuth/EnforcementState.php @@ -11,28 +11,12 @@ namespace OC\Authentication\TwoFactorAuth; use JsonSerializable; class EnforcementState implements JsonSerializable { - /** @var bool */ - private $enforced; - /** @var array */ - private $enforcedGroups; - - /** @var array */ - private $excludedGroups; - - /** - * EnforcementState constructor. - * - * @param bool $enforced - * @param string[] $enforcedGroups - * @param string[] $excludedGroups - */ - public function __construct(bool $enforced, - array $enforcedGroups = [], - array $excludedGroups = []) { - $this->enforced = $enforced; - $this->enforcedGroups = $enforcedGroups; - $this->excludedGroups = $excludedGroups; + public function __construct( + private bool $enforced, + private array $enforcedGroups = [], + private array $excludedGroups = [], + ) { } /** |