Event   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 2 Features 0
Metric Value
wmc 2
c 3
b 2
f 0
lcom 0
cbo 2
dl 0
loc 21
ccs 7
cts 7
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setDefaultOptions() 0 4 1
A __construct() 0 7 1
1
<?php
2
3
namespace Crummy\Phlack\Common;
4
5
use Guzzle\Common\Event as GuzzleEvent;
6
7
class Event extends GuzzleEvent
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12 2
    public function __construct(array $context = [])
13
    {
14 2
        $resolver = new OptionsResolver();
15 2
        $this->setDefaultOptions($resolver);
16
17 2
        parent::__construct($resolver->resolve($context));
18 2
    }
19
20
    /**
21
     * @param OptionsResolver $resolver
22
     */
23 1
    protected function setDefaultOptions(OptionsResolver $resolver)
24
    {
25
        // noop
26 1
    }
27
}
28