-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
DDC117ApproveChanges.php
76 lines (65 loc) · 1.7 KB
/
DDC117ApproveChanges.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\DDC117;
/**
* @Entity
*/
class DDC117ApproveChanges
{
/**
* @var int
* @Id
* @Column(type="integer")
* @GeneratedValue
*/
private $id;
/**
* @var DDC117ArticleDetails
* @ManyToOne(targetEntity="DDC117ArticleDetails")
* @JoinColumn(name="details_id", referencedColumnName="article_id")
*/
private $articleDetails;
/**
* @var DDC117Reference
* @ManyToOne(targetEntity="DDC117Reference")
* @JoinColumns({
* @JoinColumn(name="source_id", referencedColumnName="source_id"),
* @JoinColumn(name="target_id", referencedColumnName="target_id")
* })
*/
private $reference;
/**
* @var DDC117Translation
* @ManyToOne(targetEntity="DDC117Translation")
* @JoinColumns({
* @JoinColumn(name="trans_article_id", referencedColumnName="article_id"),
* @JoinColumn(name="trans_language", referencedColumnName="language")
* })
*/
private $translation;
public function __construct(
DDC117ArticleDetails $details,
DDC117Reference $reference,
DDC117Translation $translation
) {
$this->articleDetails = $details;
$this->reference = $reference;
$this->translation = $translation;
}
public function getId(): int
{
return $this->id;
}
public function getArticleDetails(): DDC117ArticleDetails
{
return $this->articleDetails;
}
public function getReference(): DDC117Reference
{
return $this->reference;
}
public function getTranslation(): DDC117Translation
{
return $this->translation;
}
}