rvr-nextgen/src/Repository/CommunityRepository.php
Pőcze Bence d763c4344c
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
implement community basics
2023-04-16 13:57:54 +02:00

20 lines
421 B
PHP

<?php namespace RVR\Repository;
use RVR\PersistentData\Model\Community;
use SokoWeb\PersistentData\PersistentDataManager;
class CommunityRepository
{
private PersistentDataManager $pdm;
public function __construct()
{
$this->pdm = new PersistentDataManager();
}
public function getById(int $id): ?Community
{
return $this->pdm->selectFromDbById($id, Community::class);
}
}