ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AbstractValue.php
Go to the documentation of this file.
1<?php
2
20
25
31abstract class AbstractValue implements Value
32{
33 protected Task $parentTask;
34
35 public function getType(): Type
36 {
37 return new SingleType(static::class);
38 }
39
40 public function getParentTask(): Task
41 {
42 return $this->parentTask;
43 }
44
45 public function setParentTask(Task $parentTask): void
46 {
47 $this->parentTask = $parentTask;
48 }
49
50 public function hasParentTask(): bool
51 {
52 return isset($this->parentTask);
53 }
54
55 public function __serialize(): array
56 {
57 return ['data' => $this->serialize()];
58 }
59
60 public function __unserialize(array $data): void
61 {
62 $this->unserialize($data['data']);
63 }
64}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Job.php:19