PHP 8.3.31
Preview: CursorState.php Size: 1.10 KB
/home/getspomw/royalsquad.us/vendor/league/commonmark/src/Parser/CursorState.php

<?php

declare(strict_types=1);

/*
 * This file is part of the league/commonmark package.
 *
 * (c) Colin O'Dell <colinodell@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace League\CommonMark\Parser;

/**
 * Encapsulates the current state of a cursor in case you need to rollback later.
 *
 * WARNING: Do not attempt to use this class for ANYTHING except for
 * type hinting and passing this object back into restoreState().
 * The constructor, methods, and inner contents may change in any
 * future release without warning!
 *
 * @internal
 *
 * @psalm-immutable
 */
final class CursorState
{
    /**
     * @var array<int, mixed>
     *
     * @psalm-readonly
     */
    private array $state;

    /**
     * @internal
     *
     * @param array<int, mixed> $state
     */
    public function __construct(array $state)
    {
        $this->state = $state;
    }

    /**
     * @internal
     *
     * @return array<int, mixed>
     */
    public function toArray(): array
    {
        return $this->state;
    }
}

Directory Contents

Dirs: 2 × Files: 10

Name Size Perms Modified Actions
Block DIR
- drwxrwxrwx 2025-09-17 06:53:06
Edit Download
Inline DIR
- drwxrwxrwx 2025-09-17 06:53:06
Edit Download
13.98 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
1.10 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
2.86 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
6.58 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
643 B lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
12.38 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
547 B lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
1.59 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:06
Edit Download
449 B lrw-rw-rw- 2025-09-17 06:53:06
Edit Download

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