ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Agent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 
33 class Agent implements AgentInterface
34 {
35  public function __construct(private readonly Refinery $refinery)
36  {
37  }
38 
39  public function hasConfig(): bool
40  {
41  return false;
42  }
43 
45  {
46  return $this->refinery->identity();
47  }
48 
49  public function getInstallObjective(Config $config = null): Objective
50  {
51  return new NullObjective();
52  }
53 
54  public function getUpdateObjective(Config $config = null): Objective
55  {
57  }
58 
59  public function getBuildObjective(): Objective
60  {
61  return new NullObjective();
62  }
63 
64  public function getStatusObjective(Storage $storage): Objective
65  {
67  }
68 
69  public function getMigrations(): array
70  {
71  return [];
72  }
73 
74  public function getNamedObjectives(?Config $config = null): array
75  {
76  return [];
77  }
78 }
getInstallObjective(Config $config=null)
Definition: Agent.php:49
__construct(private readonly Refinery $refinery)
Definition: Agent.php:35
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Definition: Agent.php:59
getStatusObjective(Storage $storage)
Definition: Agent.php:64
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
Definition: Agent.php:44
hasConfig()
Does this agent require a configuration?
Definition: Agent.php:39
getMigrations()
Get a named map of migrations available for this Agent.
Definition: Agent.php:69
A non-objective, nothing to do to achieve it...
getNamedObjectives(?Config $config=null)
Definition: Agent.php:74
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getUpdateObjective(Config $config=null)
Definition: Agent.php:54
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...