StoryType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isValid() 0 4 1
1
<?php
2
3
namespace NotificationChannels\PivotalTracker;
4
5
final class StoryType
6
{
7
    const FEATURE = 'feature';
8
    const BUG = 'bug';
9
    const CHORE = 'chore';
10
11
    /**
12
     * @param string $type
13
     *
14
     * @return bool
15
     */
16
    public static function isValid($type)
17
    {
18
        return in_array($type, [self::FEATURE, self::BUG, self::CHORE]);
19
    }
20
}
21