Completed
Pull Request — develop (#50)
by Axel
02:57
created

BetaTesterModel   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 59
ccs 18
cts 18
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setAccount() 0 5 1
A getAccount() 0 3 1
A setCreatedAt() 0 5 1
A getCreatedAt() 0 3 1
A setUpdatedAt() 0 5 1
A getUpdatedAt() 0 3 1
1
<?php
2
3
namespace Developtech\AgilityBundle\Model;
4
5
use Symfony\Component\Security\Core\User\UserInterface;
6
7
abstract class BetaTesterModel {
8
    /** @var UserInterface **/
9
    protected $account;
10
    /** @var \DateTime **/
11
    protected $createdAt;
12
    /** @var \DateTime **/
13
    protected $updatedAt;
14
15
    /**
16
     * @param UserInterface $account
17
     * @return BetaTesterModel
18
     */
19 1
    public function setAccount(UserInterface $account) {
20 1
        $this->account = $account;
21
22 1
        return $this;
23 1
    }
24
25
    /**
26
     * @return UserInterface
27
     */
28 1
    public function getAccount() {
29 1
        return $this->account;
30
    }
31
32
    /**
33
     * @param \DateTime $createdAt
34
     * @return BetaTesterModel
35
     */
36 1
    public function setCreatedAt(\DateTime $createdAt) {
37 1
        $this->createdAt = $createdAt;
38
39 1
        return $this;
40 1
    }
41
42
    /**
43
     * @return \DateTime
44
     */
45 1
    public function getCreatedAt() {
46 1
        return $this->createdAt;
47
    }
48
49
    /**
50
     * @param \DateTime $updatedAt
51
     * @return BetaTesterModel
52
     */
53 1
    public function setUpdatedAt(\DateTime $updatedAt) {
54 1
        $this->updatedAt = $updatedAt;
55
56 1
        return $this;
57 1
    }
58
59
    /**
60
     * @return \DateTime
61
     */
62 1
    public function getUpdatedAt() {
63 1
        return $this->updatedAt;
64
    }
65
}
66