public static function MockFileFinder::create

Creates new mock file finder objects.

1 call to MockFileFinder::create()

File

drupal/core/lib/Drupal/Component/Reflection/MockFileFinder.php, line 44
Definition of Drupal\Component\Reflection\MockFileFinder.

Class

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

Namespace

Drupal\Component\Reflection

Code

public static function create($filename) {
  $object = new static(array());
  $object->filename = $filename;
  return $object;
}