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

AnnotationData::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
eloc 2
nc 2
nop 2
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