Files
apimacro/vendor/league/commonmark/src/Delimiter/DelimiterInterface.php

51 lines
1.2 KiB
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php
2024-08-13 13:44:16 +00:00
declare(strict_types=1);
2024-05-07 12:17:25 +02:00
/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
*
* Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
* - (c) John MacFarlane
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace League\CommonMark\Delimiter;
2024-08-13 13:44:16 +00:00
use League\CommonMark\Node\Inline\AbstractStringContainer;
2024-05-07 12:17:25 +02:00
interface DelimiterInterface
{
public function canClose(): bool;
public function canOpen(): bool;
public function isActive(): bool;
2024-08-13 13:44:16 +00:00
public function setActive(bool $active): void;
2024-05-07 12:17:25 +02:00
public function getChar(): string;
public function getIndex(): ?int;
public function getNext(): ?DelimiterInterface;
2024-08-13 13:44:16 +00:00
public function setNext(?DelimiterInterface $next): void;
2024-05-07 12:17:25 +02:00
public function getLength(): int;
2024-08-13 13:44:16 +00:00
public function setLength(int $length): void;
2024-05-07 12:17:25 +02:00
public function getOriginalLength(): int;
public function getInlineNode(): AbstractStringContainer;
public function getPrevious(): ?DelimiterInterface;
2024-08-13 13:44:16 +00:00
public function setPrevious(?DelimiterInterface $previous): void;
2024-05-07 12:17:25 +02:00
}