ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
VoidType.php
Go to the documentation of this file.
1<?php
2
20
27class VoidType implements Type
28{
30
35 protected function __construct()
36 {
37 }
38
39 public static function instance(): ?\ILIAS\BackgroundTasks\Types\VoidType
40 {
41 if (self::instance() === null) {
42 self::$instance = new VoidType();
43 }
44
45 return self::$instance;
46 }
47
51 public function __toString(): string
52 {
53 return "Void";
54 }
55
60 public function isExtensionOf(Type $type): bool
61 {
62 return $type instanceof VoidType;
63 }
64
68 public function equals(Type $otherType): bool
69 {
70 return $otherType instanceof VoidType;
71 }
72}
equals(Type $otherType)
returns true if the two types are equal.
Definition: VoidType.php:68
isExtensionOf(Type $type)
Is this type a subtype of $type.
Definition: VoidType.php:60
__construct()
Just to make it protected.
Definition: VoidType.php:35
static ILIAS BackgroundTasks Types VoidType $instance
Definition: VoidType.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Ancestors.php:19
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.