ArraySnapshot::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 0 Features 1
Metric Value
c 6
b 0
f 1
dl 0
loc 7
rs 9.4286
cc 1
eloc 4
nc 1
nop 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