Skip to content

Commit ac0679c

Browse files
author
Michael Vasseur
committed
Add forgotten class
1 parent 52fde24 commit ac0679c

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php declare(strict_types=1);
2+
namespace App\Entity;
3+
4+
use Doctrine\ORM\Mapping as ORM;
5+
6+
/**
7+
* A team output on a specific testcase.
8+
*/
9+
#[ORM\Entity]
10+
#[ORM\Table(options: [
11+
'collation' => 'utf8mb4_unicode_ci',
12+
'charset' => 'utf8mb4',
13+
'comment' => 'Team output visualization.',
14+
])]
15+
#[ORM\Index(columns: ['judgingid'], name: 'judgingid')]
16+
class Visualization
17+
{
18+
#[ORM\Id]
19+
#[ORM\GeneratedValue]
20+
#[ORM\Column(options: ['comment' => 'Visualization ID', 'unsigned' => true])]
21+
private int $visualization_id;
22+
23+
#[ORM\ManyToOne(inversedBy: 'visualizations')]
24+
#[ORM\JoinColumn(name: 'judgingid', referencedColumnName: 'judgingid', onDelete: 'CASCADE')]
25+
private Judging $judging;
26+
27+
#[ORM\Column(options: ['comment' => 'Name of the file where we stored the visualization.'])]
28+
private string $filename;
29+
30+
#[ORM\ManyToOne]
31+
#[ORM\JoinColumn(name: 'judgehostid', referencedColumnName: 'judgehostid', onDelete: 'SET NULL')]
32+
private Judgehost $judgehost;
33+
34+
#[ORM\ManyToOne(inversedBy: 'visualizations')]
35+
#[ORM\JoinColumn(name: 'testcaseid', referencedColumnName: 'testcaseid', onDelete: 'CASCADE')]
36+
private Testcase $testcase;
37+
38+
public function getVisualizationId(): int
39+
{
40+
return $this->visualization_id;
41+
}
42+
43+
public function getJudging(): Judging
44+
{
45+
return $this->judging;
46+
}
47+
48+
public function setJudging(Judging $judging): Visualization
49+
{
50+
$this->judging = $judging;
51+
return $this;
52+
}
53+
54+
public function getFilename(): string
55+
{
56+
return $this->filename;
57+
}
58+
59+
public function setFilename(string $filename): Visualization
60+
{
61+
$this->filename = $filename;
62+
return $this;
63+
}
64+
65+
public function getJudgehost(): Judgehost
66+
{
67+
return $this->judgehost;
68+
}
69+
70+
public function setJudgehost(Judgehost $judgehost): Visualization
71+
{
72+
$this->judgehost = $judgehost;
73+
return $this;
74+
}
75+
76+
public function getTestcase(): Judgehost
77+
{
78+
return $this->testcase;
79+
}
80+
81+
public function setTestcase(Testcase $testcase): Visualization
82+
{
83+
$this->testcase = $testcase;
84+
return $this;
85+
}
86+
}

0 commit comments

Comments
 (0)