class Location
Same name in this branch
- 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.
File
-
vendor/
phpdocumentor/ reflection-common/ src/ Location.php, line 21
Namespace
phpDocumentor\ReflectionView 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. |