Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Log |
||
20 | { |
||
21 | use TimestampableTypedEntity; |
||
22 | |||
23 | public const TYPE_RETURN = 'return'; |
||
24 | public const TYPE_OUTFOCUSED = 'outfocused'; |
||
25 | public const TYPE_OUTFOCUSED_LIMIT = 'outfocused_limit'; |
||
26 | public const TYPE_TIME_LIMIT = 'time_limit'; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | * |
||
31 | * @ORM\Column(name="id", type="integer") |
||
32 | * @ORM\Id |
||
33 | * @ORM\GeneratedValue |
||
34 | */ |
||
35 | private $id; |
||
36 | |||
37 | /** |
||
38 | * @var TrackEExercises |
||
39 | * |
||
40 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\TrackEExercises") |
||
41 | * @ORM\JoinColumn(name="exe_id", referencedColumnName="exe_id", onDelete="SET NULL") |
||
42 | */ |
||
43 | private $exe; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * |
||
48 | * @ORM\Column(name="action", type="string", nullable=false) |
||
49 | */ |
||
50 | private $action; |
||
51 | |||
52 | public function getId(): int |
||
53 | { |
||
54 | return $this->id; |
||
55 | } |
||
56 | |||
57 | public function getExe(): TrackEExercises |
||
58 | { |
||
59 | return $this->exe; |
||
60 | } |
||
61 | |||
62 | public function setExe(TrackEExercises $exe): Log |
||
67 | } |
||
68 | |||
69 | public function getAction(): string |
||
72 | } |
||
73 | |||
74 | public function setAction(string $action): Log |
||
81 |