Passed
Push — master ( f17b13...8bf1e0 )
by Radu
01:33
created

ColumnArrayObject   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A offsetSet() 0 6 2
1
<?php
2
namespace WebServCo\Framework\DataTables;
3
4
class ColumnArrayObject extends \ArrayObject
5
{
6
    public function offsetSet($name, $value)
7
    {
8
        if (!($value instanceof Column)) {
9
            throw new \InvalidArgumentException('Only Column objects allowed');
10
        }
11
        parent::offsetSet($name, $value);
12
    }
13
}
14