Completed
Push — develop ( 90d434...5a25e9 )
by Michael
02:38
created

SlashCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setDefaultOptions() 0 6 1
1
<?php
2
3
namespace Crummy\Phlack\WebHook;
4
5
use Crummy\Phlack\Common\OptionsResolver;
6
7
class SlashCommand extends AbstractCommand
8
{
9 4
    public function setDefaultOptions(OptionsResolver $resolver)
10
    {
11 4
        parent::setDefaultOptions($resolver);
12
13 4
        $resolver->setDefined(['team_domain', 'service_id']);
14 4
    }
15
}
16