final |
|---|
A write site of a local variable inside a function-like body. Immutable. Whether the written value was read afterwards is not a property of the write - it is answered by VariableWritesNode::isRead().
| Methods | ||
|---|---|---|
public
|
__construct(
string $variableName,
Node $node,
int $id,
self::KIND_* $kind,
bool $offsetWrite = false,
int|string|null $offset = null,
?int $parentId = null,
bool $replacesOffset = true,
)
|
# |
public
|
getVariableName(): string
|
# |
public
|
getNode(): Node
|
# |
public
|
getId(): int
|
# |
public
|
getKind(): self::KIND_*
|
# |
public
|
isOffsetWrite(): bool
|
# |
public
|
getOffset(): int|string|null
|
# |
public
|
getParentId(): ?int
|
# |
public
|
replacesOffset(): bool
|
# |