ReferenceRename
Read onlyYes
FinalYes
Points every reference to $from in a function tree at $to instead; the rest of the tree is untouched.
Methods
- __construct() : mixed
- in() : FunctionTree|null
- null when a reference to $from is a resolved one - only an unresolved reference can be pointed elsewhere without a type it no longer matches.
Methods
__construct()
public
__construct(string $from, string $to) : mixed
Parameters
- $from : string
- $to : string
in()
null when a reference to $from is a resolved one - only an unresolved reference can be pointed elsewhere without a type it no longer matches.
public
in(FunctionTree $tree) : FunctionTree|null
Parameters
- $tree : FunctionTree