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

SlashCommand::setDefaultOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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