BasicManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
namespace Michaels\Manager;
3
4
use Interop\Container\ContainerInterface;
5
use Michaels\Manager\Contracts\ManagesItemsInterface;
6
use Michaels\Manager\Traits\ManagesItemsTrait;
7
8
/**
9
 * Manages deeply nested, complex data.
10
 *
11
 * A basic manager class with no pizazz. Simply manages complex data.
12
 * NOTE: this is not arrayable.
13
 *
14
 * @package Michaels\Manager
15
 */
16
class BasicManager implements
17
    ManagesItemsInterface,
18
    ContainerInterface
19
{
20
    use ManagesItemsTrait;
21
22
    /**
23
     * Build a new manager instance
24
     * @param array $items
25
     */
26
    public function __construct($items = [])
27
    {
28
        $this->initManager($items);
29
    }
30
}
31