You are here

public static function SimpleExifToolFacade::getInstance in Exif 8.2

Same name and namespace in other branches
  1. 8 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::getInstance()
  2. 7 SimpleExiftoolFacade.php \Drupal\exif\SimpleExifToolFacade::getInstance()

Return singleton instance.

Return value

\Drupal\exif\ExifInterface the chosen implementation instance.

1 call to SimpleExifToolFacade::getInstance()
ExifFactory::getExifInterface in src/ExifFactory.php
Return configured exif parser.

File

src/SimpleExifToolFacade.php, line 28

Class

SimpleExifToolFacade
Class SimpleExifToolFacade.

Namespace

Drupal\exif

Code

public static function getInstance() {
  if (is_null(self::$instance)) {
    self::$instance = new self();
  }
  return self::$instance;
}