src/Reflection/ReflectionClassConstant.php
public static function createFromNode(
        Reflector $reflector,
        ClassConst $node,
        int $positionInNode,
        ReflectionClass $owner
    ) : self {
        $ref                 = new self();
        $ref->node           = $node;
        $ref->positionInNode = $positionInNode;
        $ref->owner          = $owner;
        $ref->reflector      = $reflector;

        return $ref;
    }
public static function createFromNode(
        Reflector $reflector,
        ClassConst $node,
        int $positionInNode,
        ReflectionClass $owner
    ) : self {
        $ref                 = new self();
        $ref->node           = $node;
        $ref->positionInNode = $positionInNode;
        $ref->owner          = $owner;
        $ref->reflector      = $reflector;

        return $ref;
    }
Create a reflection of a class's constant by Const Node

@internal

@param ClassConst $node Node has to be processed by the PhpParser\NodeVisitor\NameResolver