ArraySnapshot   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
/**
3
 * This file is part of the Totem package
4
 *
5
 * For the full copyright and license information, please view the LICENSE file
6
 * that was distributed with this source code.
7
 *
8
 * @copyright Baptiste Clavié <[email protected]>
9
 * @license   http://www.opensource.org/licenses/MIT-License MIT License
10
 */
11
12
namespace Totem\Snapshot;
13
14
use Totem\AbstractSnapshot;
15
16
/**
17
 * Represents a snapshot of an array at a given time
18
 *
19
 * @author Baptiste Clavié <[email protected]>
20
 */
21
class ArraySnapshot extends AbstractSnapshot
22
{
23
    public function __construct(array $data)
24
    {
25
        $this->raw  = $data;
26
        $this->data = $data;
27
28
        parent::normalize();
29
    }
30
}
31
32