ILIAS  release_8 Revision v8.24
class.ilTermsOfServiceHistorizedDocument.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
29
30 public function __construct(
33 ) {
34 $this->entity = $entity;
35 $this->criteria = $criteria;
36 }
37
38 public function content(): string
39 {
40 return $this->entity->getTitle();
41 }
42
43 public function title(): string
44 {
45 return $this->entity->getTitle();
46 }
47
48 public function id(): int
49 {
50 return $this->entity->getDocumentId();
51 }
52
53 public function criteria(): array
54 {
55 return array_map(static function (array $criterion): ilTermsOfServiceHistorizedCriterion {
57 $criterion['id'],
58 $criterion['value']
59 );
60 }, $this->criteria->getArrayCopy());
61 }
62}
__construct(ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria)
ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria
Interface ilTermsOfServiceSignableDocument.