File manager - Edit - /home/ferretapmx/public_html/plugins/system/helixultimate/vendor/scssphp/source-span/src/SimpleSourceLocation.php
Back
<?php namespace SourceSpan; use League\Uri\Contracts\UriInterface; final class SimpleSourceLocation extends SourceLocationMixin { private readonly int $line; private readonly int $column; /** * Creates a new location indicating $offset within $sourceUrl. * * $line and $column default to assuming the source is a single ASCII line. This * means that $line defaults to 0 and $column defaults to $offset. */ public function __construct( private readonly int $offset, private readonly ?UriInterface $sourceUrl = null, ?int $line = null, ?int $column = null, ) { $this->line = $line ?? 0; $this->column = $column ?? $offset; if ($offset < 0) { throw new \OutOfRangeException('Offset may not be negative.'); } if ($line !== null && $line < 0) { throw new \OutOfRangeException('Line may not be negative.'); } if ($column !== null && $column < 0) { throw new \OutOfRangeException('Column may not be negative.'); } } public function getOffset(): int { return $this->offset; } public function getLine(): int { return $this->line; } public function getColumn(): int { return $this->column; } public function getSourceUrl(): ?UriInterface { return $this->sourceUrl; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings