ILIAS  release_7 Revision v7.30-3-g800a261c036
HasNoNamedObjective.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
6
9
10trait HasNoNamedObjective
11{
17 public function getNamedObjective(string $name, Config $config = null) : Objective
18 {
19 throw new \InvalidArgumentException(
20 "There is no named objective '$name'."
21 );
22 }
23}
An exception for terminatinating execution or to throw for unit testing.
getNamedObjective(string $name, Config $config=null)
Get a named objective from this agent.
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
if($format !==null) $name
Definition: metadata.php:230
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68