/** * @param \phan\Context $context * The context in which the structural element lives * * @param string $name, * The name of the typed structural element * * @param UnionType $type, * A '|' delimited set of types satisfyped by this * typed structural element. * * @param int $flags, * The flags property contains node specific flags. It is * always defined, but for most nodes it is always zero. * ast\kind_uses_flags() can be used to determine whether * a certain kind has a meaningful flags value. * * @param int $number_of_required_parameters * * @param int $number_of_optional_parameters * * @param bool $is_dynamic */ public function __construct(Context $context, string $name, UnionType $type, int $flags, int $number_of_required_parameters = 0, int $number_of_optional_parameters = 0, bool $is_dynamic = false) { parent::__construct($context, $name, $type, $flags); $this->number_of_required_parameters = $number_of_required_parameters; $this->number_of_optional_parameters = $number_of_optional_parameters; $this->is_dynamic = $is_dynamic; }
/** * @param Context $context * The context in which the structural element lives * * @param string $name, * The name of the typed structural element * * @param UnionType $type, * A '|' delimited set of types satisfyped by this * typed structural element. * * @param int $flags, * The flags property contains node specific flags. It is * always defined, but for most nodes it is always zero. * ast\kind_uses_flags() can be used to determine whether * a certain kind has a meaningful flags value. * * @param FQSEN $fqsen * A fully qualified name for the element */ public function __construct(Context $context, string $name, UnionType $type, int $flags, FQSEN $fqsen) { parent::__construct($context, $name, $type, $flags, $fqsen); // Presume that this is the original definition // of this method, and let it be overwritten // if it isn't. $this->setDefiningFQSEN($fqsen); $this->setInternalScope(new FunctionLikeScope($context->getScope(), $fqsen)); }
/** * @param \phan\Context $context * The context in which the structural element lives * * @param string $name, * The name of the typed structural element * * @param UnionType $type, * A '|' delimited set of types satisfyped by this * typed structural element. * * @param int $flags, * The flags property contains node specific flags. It is * always defined, but for most nodes it is always zero. * ast\kind_uses_flags() can be used to determine whether * a certain kind has a meaningful flags value. */ public function __construct(Context $context, string $name, UnionType $type, int $flags) { parent::__construct($context, $name, $type, $flags); }
/** * @param \phan\Context $context * The context in which the structural element lives * * @param string $name, * The name of the typed structural element * * @param UnionType $type, * A '|' delimited set of types satisfyped by this * typed structural element. * * @param int $flags, * The flags property contains node specific flags. It is * always defined, but for most nodes it is always zero. * ast\kind_uses_flags() can be used to determine whether * a certain kind has a meaningful flags value. */ public function __construct(Context $context, string $name, UnionType $type, int $flags, FullyQualifiedPropertyName $fqsen) { parent::__construct($context, $name, $type, $flags, $fqsen); }