| 1 | <?php namespace Arcanedev\LaravelSitemap\Entities; |
||
| 11 | class SitemapItemCollection extends Collection |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Main Functions |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Add a sitemap item to the collection. |
||
| 19 | * |
||
| 20 | * @param array $params |
||
| 21 | * @param bool $escape |
||
| 22 | * |
||
| 23 | * @return self |
||
| 24 | */ |
||
| 25 | 16 | public function addItem(array $params, $escape = true) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Get a sitemap item from the collection by key. |
||
| 34 | * |
||
| 35 | * @param mixed $key |
||
| 36 | * @param mixed $default |
||
| 37 | * |
||
| 38 | * @return \Arcanedev\LaravelSitemap\Entities\SitemapItem|null |
||
| 39 | */ |
||
| 40 | 16 | public function get($key, $default = null) |
|
| 44 | } |
||
| 45 |