ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\Component\Dependencies\GetProbe Class Reference
+ Inheritance diagram for ILIAS\Component\Dependencies\GetProbe:
+ Collaboration diagram for ILIAS\Component\Dependencies\GetProbe:

Public Member Functions

 __construct (protected $probe)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 

Detailed Description

Definition at line 25 of file GetProbe.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Component\Dependencies\GetProbe::__construct ( protected  $probe)

Definition at line 27 of file GetProbe.php.

29  {
30  if (!is_callable($probe)) {
31  throw new \InvalidArgumentException(
32  "Expected \$probe to be callable."
33  );
34  }
35  }

Member Function Documentation

◆ offsetExists()

ILIAS\Component\Dependencies\GetProbe::offsetExists (   $offset)

Definition at line 37 of file GetProbe.php.

37  : bool
38  {
39  return false;
40  }

◆ offsetGet()

ILIAS\Component\Dependencies\GetProbe::offsetGet (   $offset)

Definition at line 42 of file GetProbe.php.

42  : mixed
43  {
44  $probe = $this->probe;
45  return $probe($offset);
46  }

◆ offsetSet()

ILIAS\Component\Dependencies\GetProbe::offsetSet (   $offset,
  $value 
)

Definition at line 48 of file GetProbe.php.

48  : void
49  {
50  throw new \LogicException(
51  "Read-only dependency type used for writing."
52  );
53  }

◆ offsetUnset()

ILIAS\Component\Dependencies\GetProbe::offsetUnset (   $offset)

Definition at line 55 of file GetProbe.php.

55  : void
56  {
57  }

The documentation for this class was generated from the following file: