30 lines
449 B
PHP
Raw Normal View History

2018-07-14 21:58:36 +02:00
<?php
namespace repository;
2018-07-15 08:31:24 +02:00
use core\CoreInterface;
use entity\user\UserInterface;
2018-07-14 21:58:36 +02:00
/**
2018-07-15 08:31:24 +02:00
*
2018-07-14 21:58:36 +02:00
* @author kevinfrantz
*
*/
abstract class AbstractRepository
{
/**
* @var \PDO
*/
protected $database;
2018-07-15 08:31:24 +02:00
/**
* @var UserInterface
*/
protected $user;
public function __construct(CoreInterface $core){
$this->database = $core->getDatabase();
$this->user = $core->getUser();
2018-07-14 21:58:36 +02:00
}
}