UserNegativeBalanceEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isFirstTime() 0 4 1
A getUser() 0 4 1
1
<?php
2
3
namespace KI\FoyerBundle\Event;
4
5
use FOS\UserBundle\Model\UserInterface;
6
use KI\UserBundle\Entity\User;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class UserNegativeBalanceEvent extends Event
10
{
11
    protected $user;
12
    protected $firstTime;
13
14
    public function __construct(UserInterface $user, $firstTime)
15
    {
16
        $this->user = $user;
17
        $this->firstTime = $firstTime;
18
    }
19
20
    public function isFirstTime()
21
    {
22
        return $this->firstTime;
23
    }
24
25
    /**
26
     * @return User
27
     */
28
    public function getUser()
29
    {
30
        return $this->user;
31
    }
32
}
33