PHP 8.2.31
Preview: StartAndEnd.php Size: 659 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/BetterPhpDocParser/ValueObject/StartAndEnd.php

<?php

declare (strict_types=1);
namespace Rector\BetterPhpDocParser\ValueObject;

use Rector\Exception\ShouldNotHappenException;
final class StartAndEnd
{
    /**
     * @readonly
     * @var int
     */
    private $start;
    /**
     * @readonly
     * @var int
     */
    private $end;
    public function __construct(int $start, int $end)
    {
        $this->start = $start;
        $this->end = $end;
        if ($end < $start) {
            throw new ShouldNotHappenException();
        }
    }
    public function getStart() : int
    {
        return $this->start;
    }
    public function getEnd() : int
    {
        return $this->end;
    }
}

Directory Contents

Dirs: 4 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Parser DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
PhpDoc DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Type DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
1.07 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
741 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
659 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).