Final Class Yiisoft\HttpMiddleware\TagRequest\TagProvider\PredefinedTagProvider
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Provides tags from a predefined collection. Useful for testing purposes.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| get() | Yiisoft\ |
Method Details
| public mixed __construct ( iterable $tags ) | ||
| $tags | iterable |
Predefined tags to be returned by the provider. |
public function __construct(iterable $tags)
{
$this->iterator = $this->createIterator($tags);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.