All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good
17 lines
422 B
PHP
17 lines
422 B
PHP
<?php namespace RVR\Repository;
|
|
|
|
use RVR\PersistentData\Model\Community;
|
|
|
|
class CommunityRepository
|
|
{
|
|
public function getById(int $id): ?Community
|
|
{
|
|
return \Container::$persistentDataManager->selectFromDbById($id, Community::class);
|
|
}
|
|
|
|
public function getBySlug(string $slug): ?Community
|
|
{
|
|
return \Container::$persistentDataManager->selectFromDbBySlug($slug, Community::class);
|
|
}
|
|
}
|