. */ namespace Doctrine\DBAL\Tools\Console\Helper; use Symfony\Components\Console\Helper\Helper, Doctrine\DBAL\Connection; /** * Doctrine CLI Connection Helper. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @author Benjamin Eberlei * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class ConnectionHelper extends Helper { /** * Doctrine Database Connection * @var Connection */ protected $_connection; /** * Constructor * * @param Connection $connection Doctrine Database Connection */ public function __construct(Connection $connection) { $this->_connection = $connection; } /** * Retrieves Doctrine Database Connection * * @return Connection */ public function getConnection() { return $this->_connection; } /** * @see Helper */ public function getName() { return 'connection'; } }