ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
5 namespace ILIAS\Setup\Agent;
6 
9 
10 trait 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 objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
if($format !==null) $name
Definition: metadata.php:230
getNamedObjective(string $name, Config $config=null)
Get a named objective from this agent.
A configuration for the setup.
Definition: Config.php:10