type = $type; $this->groups = $groups; $this->options = $options; } /** * @return Type */ public function getType() { return $this->type; } /** * @return string[]|null */ public function getGroups() { return $this->groups; } public function getHash(): string { return md5(serialize([$this->type, $this->groups])); } /** * @return mixed[]|null */ public function getOptions() { return $this->options; } }