date.chapril.org-framadate/app/classes/Framadate/Repositories/AbstractRepository.php

34 lines
585 B
PHP
Raw Normal View History

<?php
namespace Framadate\Repositories;
use Framadate\FramaDB;
abstract class AbstractRepository {
/**
* @var FramaDB
*/
private $connect;
/**
* PollRepository constructor.
* @param FramaDB $connect
*/
function __construct(FramaDB $connect) {
$this->connect = $connect;
}
public function beginTransaction() {
$this->connect->beginTransaction();
}
public function commit() {
$this->connect->commit();
}
public function prepare($sql) {
return $this->connect->prepare($sql);
}
}