You are here

class Location in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Location.php \phpDocumentor\Reflection\DocBlock\Location

The location a DocBlock occurs within a file.

@author Vasil Rangelov <boen.robot@gmail.com> @license http://www.opensource.org/licenses/mit-license.php MIT @link http://phpdoc.org

Hierarchy

  • class \phpDocumentor\Reflection\DocBlock\Location

Expanded class hierarchy of Location

2 files declare their use of Location
DocBlock.php in vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock.php
DocBlockTest.php in vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php
15 string references to 'Location'
Client::request in vendor/symfony/browser-kit/Client.php
Calls a URI.
DbLogController::eventDetails in core/modules/dblog/src/Controller/DbLogController.php
Displays details about a specific database log message.
dblog_views_data in core/modules/dblog/dblog.views.inc
Implements hook_views_data().
HttpCache::invalidate in vendor/symfony/http-kernel/HttpCache/HttpCache.php
Invalidates non-safe methods (like POST, PUT, and DELETE).
HttpCacheTest::testInvalidatesCachedResponsesOnPost in vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php

... See full list

File

vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Location.php, line 22

Namespace

phpDocumentor\Reflection\DocBlock
View source
class Location {

  /** @var int Line where the DocBlock text starts. */
  protected $lineNumber = 0;

  /** @var int Column where the DocBlock text starts. */
  protected $columnNumber = 0;
  public function __construct($lineNumber = 0, $columnNumber = 0) {
    $this
      ->setLineNumber($lineNumber)
      ->setColumnNumber($columnNumber);
  }

  /**
   * @return int Line where the DocBlock text starts.
   */
  public function getLineNumber() {
    return $this->lineNumber;
  }

  /**
   *
   * @param type $lineNumber
   * @return $this
   */
  public function setLineNumber($lineNumber) {
    $this->lineNumber = (int) $lineNumber;
    return $this;
  }

  /**
   * @return int Column where the DocBlock text starts.
   */
  public function getColumnNumber() {
    return $this->columnNumber;
  }

  /**
   *
   * @param int $columnNumber
   * @return $this
   */
  public function setColumnNumber($columnNumber) {
    $this->columnNumber = (int) $columnNumber;
    return $this;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Location::$columnNumber protected property @var int Column where the DocBlock text starts.
Location::$lineNumber protected property @var int Line where the DocBlock text starts.
Location::getColumnNumber public function
Location::getLineNumber public function
Location::setColumnNumber public function
Location::setLineNumber public function
Location::__construct public function