Phan\Language\FQSEN\FullyQualifiedClassElement::make PHP Méthode

make() public static méthode

public static make ( FullyQualifiedClassName $fully_qualified_class_name, string $name, integer $alternate_id )
$fully_qualified_class_name FullyQualifiedClassName The fully qualified class name of the class in whic this element exists
$name string A name if one is in scope or the empty string otherwise.
$alternate_id integer An alternate ID for the element for use when there are multiple definitions of the element
    public static function make(FullyQualifiedClassName $fully_qualified_class_name, string $name, int $alternate_id = 0)
    {
        $name = static::canonicalName($name);
        $key = self::toString($fully_qualified_class_name, $name, $alternate_id) . '|' . get_called_class();
        return self::memoizeStatic($key, function () use($fully_qualified_class_name, $name, $alternate_id) {
            return new static($fully_qualified_class_name, $name, $alternate_id);
        });
    }