function AbstractInjectedApi::__construct in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/InjectedApi/AbstractInjectedApi.php \Drupal\xautoload\ClassFinder\InjectedApi\AbstractInjectedApi::__construct()
Parameters
$class_name: Name of the class or interface we are trying to load.
1 call to AbstractInjectedApi::__construct()
- CollectFilesInjectedApi::__construct in src/
ClassFinder/ InjectedApi/ CollectFilesInjectedApi.php - The method that, if called with $this->file, will return TRUE.
1 method overrides AbstractInjectedApi::__construct()
- CollectFilesInjectedApi::__construct in src/
ClassFinder/ InjectedApi/ CollectFilesInjectedApi.php - The method that, if called with $this->file, will return TRUE.
File
- src/
ClassFinder/ InjectedApi/ AbstractInjectedApi.php, line 22
Class
- AbstractInjectedApi
- To help testability, we use an injected API instead of just a return value. The injected API can be mocked to provide a mocked file_exists(), and to monitor all suggested candidates, not just the correct return value.
Namespace
Drupal\xautoload\ClassFinder\InjectedApiCode
function __construct($class_name) {
$this->className = $class_name;
}