ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Setup\ImplementationOfInterfaceFinder Class Reference
+ Inheritance diagram for ILIAS\Setup\ImplementationOfInterfaceFinder:
+ Collaboration diagram for ILIAS\Setup\ImplementationOfInterfaceFinder:

Public Member Functions

 getMatchingClassNames (string $interface, array $additional_ignore=[], ?string $matching_path=null)
 
 isClassMatching (string $interface, \ReflectionClass $r)
 
- Public Member Functions inherited from ILIAS\Setup\AbstractOfFinder
 __construct ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Setup\AbstractOfFinder
 genericGetMatchingClassNames (callable $is_matching, array $additional_ignore=[], ?string $matching_path=null)
 The matcher finds the class names implementing the given interface, while ignoring paths in self::$ignore and and the additional patterns provided. More...
 
 getAllClassNames (array $additional_ignore, ?string $matching_path=null)
 
- Protected Attributes inherited from ILIAS\Setup\AbstractOfFinder
string $root
 
array $ignore
 
array $classmap = null
 

Detailed Description

Definition at line 28 of file ImplementationOfInterfaceFinder.php.

Member Function Documentation

◆ getMatchingClassNames()

ILIAS\Setup\ImplementationOfInterfaceFinder::getMatchingClassNames ( string  $interface,
array  $additional_ignore = [],
?string  $matching_path = null 
)

Definition at line 30 of file ImplementationOfInterfaceFinder.php.

References $r, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Setup\AbstractOfFinder\genericGetMatchingClassNames(), and ILIAS\Setup\ImplementationOfInterfaceFinder\isClassMatching().

34  : \Iterator {
36  fn (\ReflectionClass $r) => $this->isClassMatching($interface, $r),
37  $additional_ignore,
38  $matching_path
39  );
40  }
genericGetMatchingClassNames(callable $is_matching, array $additional_ignore=[], ?string $matching_path=null)
The matcher finds the class names implementing the given interface, while ignoring paths in self::$ig...
isClassMatching(string $interface, \ReflectionClass $r)
$r
+ Here is the call graph for this function:

◆ isClassMatching()

ILIAS\Setup\ImplementationOfInterfaceFinder::isClassMatching ( string  $interface,
\ReflectionClass  $r 
)

Definition at line 42 of file ImplementationOfInterfaceFinder.php.

Referenced by ILIAS\Setup\ImplementationOfInterfaceFinder\getMatchingClassNames().

42  : bool
43  {
44  return ($r->isInstantiable() && $r->implementsInterface($interface));
45  }
$r
+ Here is the caller graph for this function:

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