Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Location.php

class Location

Same name in this branch
  1. 11.1.x vendor/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo/Location.php \Google\Protobuf\Internal\SourceCodeInfo\Location

The location where an element occurs within a file.

@psalm-immutable

Hierarchy

  • class \phpDocumentor\Reflection\Location

Expanded class hierarchy of Location

15 string references to 'Location'
AbstractBrowser::request in vendor/symfony/browser-kit/AbstractBrowser.php
Calls a URI.
Application::exitWithCrashMessage in vendor/phpunit/phpunit/src/TextUI/Application.php
@codeCoverageIgnore
CurlDownloader::handleRedirect in vendor/composer/composer/src/Composer/Util/Http/CurlDownloader.php
CurlDownloader::isAuthenticatedRetryNeeded in vendor/composer/composer/src/Composer/Util/Http/CurlDownloader.php
DbLogController::eventDetails in core/modules/dblog/src/Controller/DbLogController.php
Displays details about a specific database log message.

... See full list

File

vendor/phpdocumentor/reflection-common/src/Location.php, line 21

Namespace

phpDocumentor\Reflection
View source
final class Location {
    
    /** @var int */
    private $lineNumber = 0;
    
    /** @var int */
    private $columnNumber = 0;
    
    /**
     * Initializes the location for an element using its line number in the file and optionally the column number.
     */
    public function __construct(int $lineNumber, int $columnNumber = 0) {
        $this->lineNumber = $lineNumber;
        $this->columnNumber = $columnNumber;
    }
    
    /**
     * Returns the line number that is covered by this location.
     */
    public function getLineNumber() : int {
        return $this->lineNumber;
    }
    
    /**
     * Returns the column number (character position on a line) for this location object.
     */
    public function getColumnNumber() : int {
        return $this->columnNumber;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Location::$columnNumber private property @var int
Location::$lineNumber private property @var int
Location::getColumnNumber public function Returns the column number (character position on a line) for this location object.
Location::getLineNumber public function Returns the line number that is covered by this location.
Location::__construct public function Initializes the location for an element using its line number in the file and optionally the column number.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal