name = $name; $this->scope = PersistenceScope::donation(); $this->__validationRulesConstruct(); $this->__visibilityConditionsConstruct(); } /** * @inheritDoc */ public function getNodeType(): string { return 'field'; } /** * Create a named field. * * @since 2.12.0 * * @return static * @throws EmptyNameException */ public static function make(string $name): self { if (!$name) { throw new EmptyNameException(); } return new static($name); } }