Authentication   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 133
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 13
lcom 1
cbo 0
dl 0
loc 133
rs 10
c 0
b 0
f 0

13 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A setId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getValues() 0 4 1
A addValue() 0 4 1
A getTimestamp() 0 4 1
A setTimestamp() 0 4 1
A isSynced() 0 4 1
A setSynced() 0 4 1
A getSyncedFilename() 0 4 1
A setSyncedFilename() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the PostmanGeneratorBundle package.
5
 *
6
 * (c) Vincent Chalamon <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace PostmanGeneratorBundle\Model;
13
14
class Authentication
15
{
16
    /**
17
     * @var string
18
     */
19
    private $id;
20
21
    /**
22
     * @var string
23
     */
24
    private $name;
25
26
    /**
27
     * @var AuthenticationValue[]
28
     */
29
    private $values = [];
30
31
    /**
32
     * @var int
33
     */
34
    private $timestamp;
35
36
    /**
37
     * @var bool
38
     */
39
    private $synced = false;
40
41
    /**
42
     * @var string
43
     */
44
    private $syncedFilename = '';
45
46
    public function __construct()
47
    {
48
        $this->timestamp = time();
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @param string $id
61
     */
62
    public function setId($id)
63
    {
64
        $this->id = $id;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getName()
71
    {
72
        return $this->name;
73
    }
74
75
    /**
76
     * @param string $name
77
     */
78
    public function setName($name)
79
    {
80
        $this->name = $name;
81
    }
82
83
    /**
84
     * @return AuthenticationValue[]
85
     */
86
    public function getValues()
87
    {
88
        return $this->values;
89
    }
90
91
    /**
92
     * @param AuthenticationValue $value
93
     */
94
    public function addValue(AuthenticationValue $value)
95
    {
96
        $this->values[] = $value;
97
    }
98
99
    /**
100
     * @return int
101
     */
102
    public function getTimestamp()
103
    {
104
        return $this->timestamp;
105
    }
106
107
    /**
108
     * @param int $timestamp
109
     */
110
    public function setTimestamp($timestamp)
111
    {
112
        $this->timestamp = $timestamp;
113
    }
114
115
    /**
116
     * @return bool
117
     */
118
    public function isSynced()
119
    {
120
        return $this->synced;
121
    }
122
123
    /**
124
     * @param bool $synced
125
     */
126
    public function setSynced($synced)
127
    {
128
        $this->synced = $synced;
129
    }
130
131
    /**
132
     * @return string
133
     */
134
    public function getSyncedFilename()
135
    {
136
        return $this->syncedFilename;
137
    }
138
139
    /**
140
     * @param string $syncedFilename
141
     */
142
    public function setSyncedFilename($syncedFilename)
143
    {
144
        $this->syncedFilename = $syncedFilename;
145
    }
146
}
147