public function getFieldSet($type) { is_string($type) === true ?: Exceptions::throwInvalidArgument('type', $type); return isset($this->fieldSets[$type]) === true ? $this->fieldSets[$type] : null; }