fromClassName() public static method

public static fromClassName ( CodeBase $code_base, string $class_name ) : Clazz
$code_base Phan\CodeBase A reference to the entire code base in which this context exists
$class_name string The name of a builtin class to build a new Class structural element from.
return Clazz A Class structural element representing the given named builtin.
Esempio n. 1
0
 /**
  * @param string[] $class_name_list
  * A list of class names to load type information for
  *
  * @return null
  */
 private function addClassesByNames(array $class_name_list)
 {
     foreach ($class_name_list as $i => $class_name) {
         $this->addClass(Clazz::fromClassName($this, $class_name));
     }
 }
Esempio n. 2
0
 /**
  * @param string[] $class_name_list
  * A list of class names to load type information for
  *
  * @return null
  */
 private function addClassesByNames(array $class_name_list)
 {
     foreach ($class_name_list as $i => $class_name) {
         $clazz = Clazz::fromClassName($this, $class_name);
         $this->class_map[$clazz->getFQSEN()] = $clazz;
     }
 }