SerializingArrayStore   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the webmozart/key-value-store package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Webmozart\KeyValueStore;
13
14
/**
15
 * A key-value store backed by a PHP array with serialized entries.
16
 *
17
 * The contents of the store are lost when the store is released from memory.
18
 *
19
 * This store behaves more like persistent key-value stores than
20
 * {@link ArrayStore}. It is useful for testing.
21
 *
22
 * @since  1.0
23
 *
24
 * @author Bernhard Schussek <[email protected]>
25
 *
26
 * @deprecated Deprecated as of version 1.0, will be removed in version
27
 *             2.0. Use the `ArrayStore` with the `SERIALIZE` flag
28
 *             instead.
29
 */
30
class SerializingArrayStore extends ArrayStore
31
{
32
    public function __construct(array $array = array())
33
    {
34
        parent::__construct($array, parent::SERIALIZE);
35
    }
36
}
37