You are here

public function MockFileFinder::findFile in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()

Finds a class.

Parameters

string $class The name of the class.:

Return value

string|null The name of the class or NULL if not found.

Overrides ClassFinderInterface::findFile

File

lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php, line 31
Contains \Drupal\Component\Annotation\Reflection\MockFileFinder.

Class

MockFileFinder
Defines a mock file finder that only returns a single filename.

Namespace

Drupal\Component\Annotation\Reflection

Code

public function findFile($class) {
  return $this->filename;
}