Creitive\Breadcrumbs\Breadcrumbs::isEmpty PHP Метод

isEmpty() публичный Метод

Checks whether there are any breadcrumbs added yet.
public isEmpty ( ) : boolean
Результат boolean
    public function isEmpty()
    {
        return $this->count() === 0;
    }

Usage Example

Пример #1
0
 /**
  * Tests whether `Breadcrumbs::removeAll()` works correctly.
  *
  * @dataProvider crumbsProvider
  */
 public function testRemoveAll($crumbs)
 {
     $b = new Breadcrumbs($crumbs);
     $b->removeAll();
     $this->assertTrue($b->isEmpty());
 }
All Usage Examples Of Creitive\Breadcrumbs\Breadcrumbs::isEmpty