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

HasSubjectTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 3
c 1
b 0
f 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSubject() 0 3 1
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