ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
29 public function assertion(): CrawlerAssertion
30 {
31 return new CrawlerAssertion();
32 }
33
40 public function exception(int $type = -1, string $info = ""): CrawlerException
41 {
42 return new CrawlerException($type, $info);
43 }
44}
Tests properties and throws exceptions if not met.
exception(int $type=-1, string $info="")
Crawler exceptions for each type of problem that can occur while parsing the entries.
Definition: Factory.php:40
assertion()
Those assertions are used to wrap the throwing of exception to make to code more readable.
Definition: Factory.php:29
$info
Definition: entry_point.php:21