BreadcrumbsTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addBreadcrumbItem() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of vaibhavpandeyvpz/pimple-breadcrumbs package.
5
 *
6
 * (c) Vaibhav Pandey <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.md.
10
 */
11
12
namespace Pimple\Breadcrumbs;
13
14
/**
15
 * Class BreadcrumbsTrait
16
 * @package Pimple\Breadcrumbs
17
 */
18
trait BreadcrumbsTrait
19
{
20
    /**
21
     * @param string $text
22
     * @param string|null $route
23
     * @param array $params
24
     */
25
    public function addBreadcrumbItem($text, $route = null, $params = array())
26
    {
27
        $this['breadcrumbs']->addItem($text, $route, $params);
28
    }
29
}
30