Passed
Pull Request — master (#43)
by Tibor
02:57
created

SuiteName   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace Bex\Behat\ScreenshotExtension\Placeholder;
4
5
use Behat\Behat\EventDispatcher\Event\AfterScenarioTested;
6
use Bex\Behat\ScreenshotExtension\Placeholder\PlaceholderInterface;
7
8
class SuiteName implements PlaceholderInterface
9
{
10
    const KEY = '%SUITE_NAME%';
11
12
    public function getKey()
13
    {
14
        return self::KEY;   
15
    }
16
17
    public function getValue(AfterScenarioTested $event)
18
    {
19
        return $event->getSuite()->getName();
20
    }
21
}
22