ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
RepoTypeData.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 public const string F_TYPE = 'type';
29 public const string F_REF_ID = 'ref_id';
30
31 public function __construct(
32 string $type,
33 int $ref_id
34 ) {
36 [
37 self::F_TYPE => $type,
38 self::F_REF_ID => $ref_id
39 ]
40 );
41 }
42
43 public function getRefId(): ?int
44 {
45 return $this[self::F_REF_ID] ?? null;
46 }
47
48 public function setRefId(int $ref_id): void
49 {
50 $this[self::F_REF_ID] = $ref_id;
51 }
52
53 public function getType(): ?string
54 {
55 return $this[self::F_TYPE] ?? null;
56 }
57
58 public function setType(string $type): void
59 {
60 $this[self::F_TYPE] = $type;
61 }
62}
$ref_id
Definition: ltiauth.php:66
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc