primo commit
This commit is contained in:
32
libraries/vendor/psr/link/src/LinkProviderInterface.php
vendored
Normal file
32
libraries/vendor/psr/link/src/LinkProviderInterface.php
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Link;
|
||||
|
||||
/**
|
||||
* A link provider object.
|
||||
*/
|
||||
interface LinkProviderInterface
|
||||
{
|
||||
/**
|
||||
* Returns an iterable of LinkInterface objects.
|
||||
*
|
||||
* The iterable may be an array or any PHP \Traversable object. If no links
|
||||
* are available, an empty array or \Traversable MUST be returned.
|
||||
*
|
||||
* @return LinkInterface[]|\Traversable
|
||||
*/
|
||||
public function getLinks();
|
||||
|
||||
/**
|
||||
* Returns an iterable of LinkInterface objects that have a specific relationship.
|
||||
*
|
||||
* The iterable may be an array or any PHP \Traversable object. If no links
|
||||
* with that relationship are available, an empty array or \Traversable MUST be returned.
|
||||
*
|
||||
* @param string $rel
|
||||
* The relationship name for which to retrieve links.
|
||||
*
|
||||
* @return LinkInterface[]|\Traversable
|
||||
*/
|
||||
public function getLinksByRel(string $rel);
|
||||
}
|
||||
Reference in New Issue
Block a user