Exemplo n.º 1
0
 public static function getInstance() : Comparator
 {
     if (static::$INSTANCE === null) {
         static::$INSTANCE = new NaturalComparator();
     }
     return static::$INSTANCE;
 }
Exemplo n.º 2
0
 /**
  * Get instance
  *
  * @return \GravityMedia\Metadata\GetId3
  */
 public static function getInstance()
 {
     if (null === static::$INSTANCE) {
         static::$INSTANCE = new static();
     }
     return static::$INSTANCE;
 }