Completed
Pull Request — master (#34)
by Greg
02:47
created

AnnotationData   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 2
A keys() 0 4 1
1
<?php
2
namespace Consolidation\AnnotatedCommand;
3
4
class AnnotationData extends \ArrayObject
5
{
6
    public function get($key, $default)
7
    {
8
        return isset($this[$key]) ? $this[$key] : $default;
9
    }
10
11
    public function keys()
12
    {
13
        return array_keys($this->getArrayCopy());
14
    }
15
}
16