Files
apimacro/vendor/league/commonmark/src/Reference/ReferenceMapInterface.php

32 lines
787 B
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\Reference;
/**
* A collection of references
2024-08-13 13:44:16 +00:00
*
* @phpstan-extends \IteratorAggregate<ReferenceInterface>
2024-05-07 12:17:25 +02:00
*/
2024-08-13 13:44:16 +00:00
interface ReferenceMapInterface extends \IteratorAggregate, \Countable
2024-05-07 12:17:25 +02:00
{
2024-08-13 13:44:16 +00:00
public function add(ReferenceInterface $reference): void;
2024-05-07 12:17:25 +02:00
public function contains(string $label): bool;
2024-08-13 13:44:16 +00:00
public function get(string $label): ?ReferenceInterface;
2024-05-07 12:17:25 +02:00
}