enforced = $enforced; $this->enforcedGroups = $enforcedGroups; $this->excludedGroups = $excludedGroups; } /** * @return bool */ public function isEnforced(): bool { return $this->enforced; } /** * @return string[] */ public function getEnforcedGroups(): array { return $this->enforcedGroups; } /** * @return string[] */ public function getExcludedGroups(): array { return $this->excludedGroups; } public function jsonSerialize(): array { return [ 'enforced' => $this->enforced, 'enforcedGroups' => $this->enforcedGroups, 'excludedGroups' => $this->excludedGroups, ]; } }