Commaaa2
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the league/commonmark package.
|
||||
*
|
||||
@@ -16,34 +18,14 @@ namespace League\CommonMark\Reference;
|
||||
|
||||
/**
|
||||
* A collection of references
|
||||
*
|
||||
* @phpstan-extends \IteratorAggregate<ReferenceInterface>
|
||||
*/
|
||||
interface ReferenceMapInterface
|
||||
interface ReferenceMapInterface extends \IteratorAggregate, \Countable
|
||||
{
|
||||
/**
|
||||
* @param ReferenceInterface $reference
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addReference(ReferenceInterface $reference): void;
|
||||
public function add(ReferenceInterface $reference): void;
|
||||
|
||||
/**
|
||||
* @param string $label
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function contains(string $label): bool;
|
||||
|
||||
/**
|
||||
* @param string $label
|
||||
*
|
||||
* @return ReferenceInterface|null
|
||||
*/
|
||||
public function getReference(string $label): ?ReferenceInterface;
|
||||
|
||||
/**
|
||||
* Lists all registered references.
|
||||
*
|
||||
* @return ReferenceInterface[]
|
||||
*/
|
||||
public function listReferences(): iterable;
|
||||
public function get(string $label): ?ReferenceInterface;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user