ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TypeSpecificDataImplementation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 private ?int $field_id;
29
30 public function __construct(?int $field_id = null)
31 {
32 $this->field_id = $field_id;
33 }
34
35 abstract public function isTypeSupported(Type $type): bool;
36
37 final public function fieldID(): ?int
38 {
39 return $this->field_id;
40 }
41
42 public function isPersisted(): bool
43 {
44 return !is_null($this->fieldID());
45 }
46}