StoryType::isValid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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