Failure conditions met
Pushb8268a...b3fdf9
failed — Build
created

TaggableListenerTrait::getTag()   A

↳ Parent: TaggableListenerTrait

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of Rocketeer
5
 *
6
 * (c) Maxime Fabre <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 */
12
13
namespace Rocketeer\Services\Events\Listeners;
14
15
trait TaggableListenerTrait
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $tag;
21
22
    /**
23
     * @param string $tag
24
     */
25 105
    public function setTag($tag)
26
    {
27 105
        $this->tag = $tag;
28 105
    }
29
30
    /**
31
     * @return string
32
     */
33 74
    public function getTag()
34
    {
35 74
        return $this->tag;
36
    }
37
}
38