ILIAS  release_7 Revision v7.30-3-g800a261c036
PageMetrics.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
7
12final class PageMetrics
13{
17 private $pageId;
19 private $language;
21 private $readingTime;
22
31 {
33 $this->pageId = $pageId;
34 $this->language = $language;
36 }
37
41 public function contentPageId() : int
42 {
44 }
45
49 public function pageId() : int
50 {
51 return $this->pageId;
52 }
53
57 public function language() : string
58 {
59 return $this->language;
60 }
61
65 public function readingTime() : PageReadingTime
66 {
67 return $this->readingTime;
68 }
69}
An exception for terminatinating execution or to throw for unit testing.
__construct(int $contentPageId, int $pageId, string $language, PageReadingTime $readingTime)
PageMetrics constructor.
Definition: PageMetrics.php:30