public PhpClassDefinition FindOrCreateClass(PhpQualifiedName phpClassName, PhpQualifiedName baseClass) { var c = Classes.FirstOrDefault(i => phpClassName == i.Name); if (c != null) { return(c); } c = new PhpClassDefinition(phpClassName, baseClass); Classes.Add(c); return(c); }
public void SetClassName(PhpQualifiedName phpClassName, ClassTranslationInfo classTi) { _className = phpClassName; ClassTi = classTi; }
/// <summary> /// Tworzy instancję obiektu /// <param name="name">Nazwa klasy</param> /// </summary> public PhpClassDefinition(PhpQualifiedName name) { Name = name; }
/// <summary> /// Tworzy instancję obiektu /// <param name="name">Nazwa klasy</param> /// <param name="baseTypeName">Nazwa klasy</param> /// </summary> public PhpClassDefinition(PhpQualifiedName name, PhpQualifiedName baseTypeName) { Name = name; _baseTypeName = baseTypeName; }
public void SetClassName(PhpQualifiedName className, MethodTranslationInfo translationInfo) { _className = className.MakeAbsolute(); TranslationInfo = translationInfo; }