createForProperty() public method

public createForProperty ( ApiGen\Contracts\Parser\Reflection\PropertyReflectionInterface $property, ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface $class = null ) : string
$property ApiGen\Contracts\Parser\Reflection\PropertyReflectionInterface
$class ApiGen\Contracts\Parser\Reflection\ClassReflectionInterface
return string
Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 public function propertyUrl(PropertyReflectionInterface $property, ClassReflectionInterface $class = NULL)
 {
     return $this->elementUrlFactory->createForProperty($property, $class);
 }
 /**
  * @return string
  */
 public function propertyUrl(ReflectionProperty $property, ReflectionClass $class = NULL)
 {
     return $this->elementUrlFactory->createForProperty($property, $class);
 }