phpDocumentor\Reflection\DocBlock::getLocation PHP Method

getLocation() public method

Returns the current location.
public getLocation ( ) : phpDocumentor\Reflection\DocBlock\Location
return phpDocumentor\Reflection\DocBlock\Location
    public function getLocation()
    {
        return $this->location;
    }

Usage Example

 /**
  * Constructor
  *
  * @param string             $name     Name of the "entity"
  * @param DocBlock|null      $docblock Docblock
  * @param BaseReflector|null $source   Source Element.
  */
 public function __construct($name, $docblock = null, $source = null)
 {
     $this->entityName = $name;
     $this->lineNumber = $docblock ? $docblock->getLocation()->getLineNumber() : $source->getLineNumber();
     $this->docblock = $docblock;
     $this->source = $source;
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock::getLocation