You are here

public static function DbServerHandlerFactory::cast in DB Maintenance 8

Same name and namespace in other branches
  1. 7.2 src/Module/Db/DbServer/DbServerHandlerFactory.php \Drupal\db_maintenance\Module\Db\DbServer\DbServerHandlerFactory::cast()
  2. 2.0.x src/Module/Db/DbServer/DbServerHandlerFactory.php \Drupal\db_maintenance\Module\Db\DbServer\DbServerHandlerFactory::cast()

Returns typed $handler as DbServerHandlerInterface.

1 call to DbServerHandlerFactory::cast()
DbServerHandlerFactory::getDbServerHandler in src/Module/Db/DbServer/DbServerHandlerFactory.php
Returns proper DbServerHandler.

File

src/Module/Db/DbServer/DbServerHandlerFactory.php, line 41
DbServerHandlerFactory class.

Class

DbServerHandlerFactory
DbServerHandlerFactory class.

Namespace

Drupal\db_maintenance\Module\Db\DbServer

Code

public static function cast(DbServerHandlerInterface &$object = NULL) {
  return $object;
}