ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTermsOfServiceHistorizedDocument.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria
__construct(ilTermsOfServiceAcceptanceEntity $entity, ilTermsOfServiceAcceptanceHistoryCriteriaBag $criteria)
Class ilTermsOfServiceHistorizedDocument.
Class ilTermsOfServiceAcceptanceEntity.
Interface ilTermsOfServiceSignableDocument.