ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ConsecutiveScoringMode.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 public const ORIENTATION_USER = 'u';
26 public const ORIENTATION_QUESTION = 'q';
27 public const MODE_ALL_AT_ONCE = 'a';
28 public const MODE_ONE_BY_ONE = 'o';
29
30 public function __construct(
31 protected readonly string $transposition,
32 protected readonly string $cardinality
33 ) {
34 }
35
36 public function isUserCentric(): bool
37 {
38 return $this->transposition === self::ORIENTATION_USER;
39 }
40
41 public function isSingle(): bool
42 {
43 return $this->cardinality === self::MODE_ONE_BY_ONE;
44 }
45
46}
__construct(protected readonly string $transposition, protected readonly string $cardinality)