src/View/BreadcrumbCollection.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Glhd\Gretel\View;

use Illuminate\Support\Collection;
use Traversable;

class BreadcrumbCollection extends Collection
{
    public ?Breadcrumb $active = null;
    
    public function getIterator(): Traversable
    {
        $this->active = null;
        
        return new BreadcrumbIterator($this, $this->items);
    }
}