/** * @return array * Get a map from column name to row values for * this instance */ public function toRow() : array { return ['scope_name' => $this->primaryKeyValue(), 'fqsen' => (string) $this->property->getFQSEN(), 'name' => (string) $this->property->getName(), 'type' => (string) $this->property->getUnionType(), 'flags' => $this->property->getFlags(), 'context' => base64_encode(serialize($this->property->getContext())), 'is_deprecated' => $this->property->isDeprecated()]; }
/** * @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->getContext()->isInternal()) { // Associate the element with the file it was found in $this->getFileByPath($property->getContext()->getFile())->addPropertyFQSEN($property->getFQSEN()); } }