You are here

public static function ExifPHPExtension::getInstance in Exif 8

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

Return the singleton.

Return value

\Drupal\exif\ExifPHPExtension the singleton implementing the parser

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

File

src/ExifPHPExtension.php, line 29

Class

ExifPHPExtension
Class ExifPHPExtension Parser implementation base d on PHP Exif extension.

Namespace

Drupal\exif

Code

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