UserNegativeBalanceEvent::isFirstTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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