mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-03-14 19:35:19 +01:00
30 lines
449 B
PHP
30 lines
449 B
PHP
<?php
|
|
namespace repository;
|
|
|
|
use core\CoreInterface;
|
|
use entity\user\UserInterface;
|
|
|
|
/**
|
|
*
|
|
* @author kevinfrantz
|
|
*
|
|
*/
|
|
abstract class AbstractRepository
|
|
{
|
|
/**
|
|
* @var \PDO
|
|
*/
|
|
protected $database;
|
|
|
|
/**
|
|
* @var UserInterface
|
|
*/
|
|
protected $user;
|
|
|
|
public function __construct(CoreInterface $core){
|
|
$this->database = $core->getDatabase();
|
|
$this->user = $core->getUser();
|
|
}
|
|
}
|
|
|