for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
declare(strict_types=1);
namespace Chamilo\CoreBundle\Event;
class MyStudentsQuizTrackingEvent extends AbstractEvent
{
public function getHeaders(): array
return $this->data['headers'] ?? [];
}
public function addHeader(string $title, array $attrs): static
$headers = $this->getHeaders();
$this->data['headers'] = [
...$headers,
[
'title' => $title,
'attrs' => $attrs,
],
];
return $this;
public function getContents(): array
return $this->data['contents'] ?? [];
public function addContent(string $value, array $attrs): static
$contents = $this->getContents();
$this->data['contents'] = [
...$contents,
'value' => $value,
public function getExerciseId(): ?int
return $this->data['exercise_id'] ?? null;
public function getStudentId(): ?int
return $this->data['student_id'] ?? null;