Example #1
0
 public static final function create(StorageEngineType $type = null, $linkId = null)
 {
     if (!$type) {
         return new self($linkId);
     }
     $className = $type->toString();
     Assert::classExists($className);
     return new $className($linkId);
 }