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

Public Member Functions

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

Detailed Description

Definition at line 25 of file SetProbe.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 27 of file SetProbe.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\SetProbe::offsetExists (   $offset)

Definition at line 37 of file SetProbe.php.

37  : bool
38  {
39  return false;
40  }

◆ offsetGet()

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

Definition at line 42 of file SetProbe.php.

42  : mixed
43  {
44  throw new \LogicException(
45  "Write-only dependency type used for reading."
46  );
47  }

◆ offsetSet()

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

Definition at line 49 of file SetProbe.php.

49  : void
50  {
51  $probe = $this->probe;
52  $probe($offset, $value);
53  }

◆ offsetUnset()

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

Definition at line 55 of file SetProbe.php.

55  : void
56  {
57  }

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