• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rich-id / terms-module / #64

11 Oct 2023 03:35PM UTC coverage: 83.731%. First build
#64

push

web-flow
Merge b679837ca into b062eebb9

146 of 146 new or added lines in 12 files covered. (100.0%)

772 of 922 relevant lines covered (83.73%)

3.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.0
/src/Domain/Entity/TermsVersionSignature.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace RichId\TermsModuleBundle\Domain\Entity;
6

7
use Doctrine\ORM\Mapping as ORM;
8

9
/**
10
 * @ORM\Entity(repositoryClass="RichId\TermsModuleBundle\Infrastructure\Repository\TermsVersionSignatureRepository")
11
 * @ORM\Table(
12
 *     name="module_terms_terms_version_signature",
13
 *     uniqueConstraints={
14
 *         @ORM\UniqueConstraint(name="module_terms_terms_version_signature_UNIQUE", columns={"subject_type", "subject_identifier", "version_id"})
15
 *     }
16
 * )
17
 */
18
class TermsVersionSignature
19
{
20
    /**
21
     * @var int
22
     *
23
     * @ORM\Id
24
     * @ORM\Column(type="integer", name="id", options={"unsigned":true})
25
     * @ORM\GeneratedValue(strategy="AUTO")
26
     */
27
    protected $id;
28

29
    /**
30
     * @var \DateTime
31
     *
32
     * @ORM\Column(type="datetime", nullable=false, name="date")
33
     */
34
    protected $date;
35

36
    /**
37
     * @var string
38
     *
39
     * @ORM\Column(type="string", nullable=false, length=255, name="subject_type")
40
     */
41
    protected $subjectType;
42

43
    /**
44
     * @var string
45
     *
46
     * @ORM\Column(type="string", nullable=false, length=255, name="subject_identifier")
47
     */
48
    protected $subjectIdentifier;
49

50
    /**
51
     * @var string
52
     *
53
     * @ORM\Column(type="string", nullable=false, length=255, name="subject_name")
54
     */
55
    protected $subjectName;
56

57
    /**
58
     * @var TermsVersion
59
     *
60
     * @ORM\ManyToOne(targetEntity="RichId\TermsModuleBundle\Domain\Entity\TermsVersion", inversedBy="signatures")
61
     * @ORM\JoinColumn(name="version_id", referencedColumnName="id", nullable=false, onDelete="RESTRICT")
62
     */
63
    protected $version;
64

65
    /**
66
     * @var string|null
67
     *
68
     * @ORM\Column(type="string", nullable=true, length=255, name="signed_by")
69
     */
70
    protected $signedBy;
71

72
    /**
73
     * @var string|null
74
     *
75
     * @ORM\Column(type="string", nullable=true, length=255, name="signed_by_name")
76
     */
77
    protected $signedByName;
78

79
    /**
80
     * @var string|null
81
     *
82
     * @ORM\Column(type="string", nullable=true, length=255, name="signed_by_name_for_sort")
83
     */
84
    protected $signedByNameForSort;
85

86
    public function getId(): ?int
87
    {
88
        return $this->id;
1✔
89
    }
90

91
    public function setDate(\DateTime $date): self
92
    {
93
        $this->date = $date;
2✔
94

95
        return $this;
2✔
96
    }
97

98
    public function getDate(): ?\DateTime
99
    {
100
        return $this->date;
1✔
101
    }
102

103
    public function setSubjectType(string $subjectType): self
104
    {
105
        $this->subjectType = $subjectType;
2✔
106

107
        return $this;
2✔
108
    }
109

110
    public function getSubjectType(): ?string
111
    {
112
        return $this->subjectType;
1✔
113
    }
114

115
    public function setSubjectIdentifier(string $subjectIdentifier): self
116
    {
117
        $this->subjectIdentifier = $subjectIdentifier;
2✔
118

119
        return $this;
2✔
120
    }
121

122
    public function getSubjectIdentifier(): ?string
123
    {
124
        return $this->subjectIdentifier;
1✔
125
    }
126

127
    public function getSubjectName(): string
128
    {
129
        return $this->subjectName;
×
130
    }
131

132
    public function setSubjectName(string $subjectName): self
133
    {
134
        $this->subjectName = $subjectName;
1✔
135

136
        return $this;
1✔
137
    }
138

139
    public function setVersion(TermsVersion $version): self
140
    {
141
        $this->version = $version;
2✔
142

143
        return $this;
2✔
144
    }
145

146
    public function getVersion(): ?TermsVersion
147
    {
148
        return $this->version;
1✔
149
    }
150

151
    public function setSignedBy(?string $signedBy): self
152
    {
153
        $this->signedBy = $signedBy;
1✔
154

155
        return $this;
1✔
156
    }
157

158
    public function getSignedBy(): ?string
159
    {
160
        return $this->signedBy;
1✔
161
    }
162

163
    public function getSignedByName(): ?string
164
    {
165
        return $this->signedByName;
×
166
    }
167

168
    public function setSignedByName(?string $signedByName): self
169
    {
170
        $this->signedByName = $signedByName;
×
171

172
        return $this;
×
173
    }
174

175
    public function getSignedByNameForSort(): ?string
176
    {
177
        return $this->signedByNameForSort;
×
178
    }
179

180
    public function setSignedByNameForSort(?string $signedByNameForSort): self
181
    {
182
        $this->signedByNameForSort = $signedByNameForSort;
×
183

184
        return $this;
×
185
    }
186
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc