Example #1
0
 /**
  * @param Property $property
  * Any property
  *
  * @param FullyQualifiedClassName $fqsen
  * The FQSEN to index the property by
  *
  * @return null
  */
 public function addPropertyInScope(Property $property, FullyQualifiedClassName $fqsen)
 {
     $name = $property->getFQSEN()->getNameWithAlternateId();
     $this->property_map[(string) $fqsen][$name] = $property;
     // For elements that aren't internal PHP classes
     if (!$property->isInternal()) {
         // Associate the element with the file it was found in
         $this->getFileByPath($property->getFileRef()->getFile())->addPropertyFQSEN($property->getFQSEN());
     }
 }