Exemple #1
0
        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);
        }
Exemple #2
0
 public void SetClassName(PhpQualifiedName phpClassName, ClassTranslationInfo classTi)
 {
     _className = phpClassName;
     ClassTi    = classTi;
 }
Exemple #3
0
 /// <summary>
 ///     Tworzy instancję obiektu
 ///     <param name="name">Nazwa klasy</param>
 /// </summary>
 public PhpClassDefinition(PhpQualifiedName name)
 {
     Name = name;
 }
Exemple #4
0
 /// <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;
 }