Passed
Push — master ( 54e336...038bec )
by Gabriel
14:11 queued 12s
created

HasSubjectTrait::getSubject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace ByTIC\EventDispatcher\Events\Traits;
4
5
use ByTIC\EventDispatcher\Events\EventInterface;
6
7
/**
8
 * Trait HasNameTrait
9
 * @package ByTIC\EventDispatcher\Events\Traits
10
 */
11
trait HasSubjectTrait
12
{
13
    protected $subject;
14
15
    /**
16
     * Getter for subject property.
17
     *
18
     * @return mixed
19
     */
20
    public function getSubject()
21
    {
22
        return $this->subject;
23
    }
24
}
25