Completed
Push — develop ( fbdd82...317691 )
by Mike
09:29
created

ReadModels   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A offsetSet() 0 6 1
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2016 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\DomainModel\ReadModel;
14
15
use Webmozart\Assert\Assert;
16
17
final class ReadModels extends \ArrayObject
18
{
19
    public function __construct($input = [])
20
    {
21
        Assert::allIsInstanceOf($input, ReadModel::class);
22
23
        parent::__construct($input);
24
    }
25
26
    public function offsetSet($index, $newval)
27
    {
28
        Assert::isInstanceOf($newval, ReadModel::class);
29
30
        parent::offsetSet($index, $newval);
31
    }
32
}
33