/** * @return string */ private function createForProperty(PropertyReflectionInterface $reflectionProperty, array $classes) { $text = $reflectionProperty->getDeclaringClassName() . '::' . Html::el('var')->setText('$' . $reflectionProperty->getName()); return $this->linkBuilder->build($this->elementUrlFactory->createForProperty($reflectionProperty), $text, FALSE, $classes); }
/** * @return string */ public function createForProperty(PropertyReflectionInterface $property, ClassReflectionInterface $class = null) { $className = $class !== null ? $class->getName() : $property->getDeclaringClassName(); return $this->createForClass($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName(); }