All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
20 lines
421 B
PHP
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);
|
|
}
|
|
}
|