mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
28 lines
609 B
PHP
28 lines
609 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Website\Repositories;
|
|
|
|
use Doctrine\SkeletonMapper\ObjectRepository\BasicObjectRepository;
|
|
use Doctrine\Website\Model\Contributor;
|
|
|
|
class ContributorRepository extends BasicObjectRepository
|
|
{
|
|
/**
|
|
* @return Contributor[]
|
|
*/
|
|
public function findMaintainers() : array
|
|
{
|
|
return $this->findBy(['isTeamMember' => true], ['github' => 'asc']);
|
|
}
|
|
|
|
/**
|
|
* @return Contributor[]
|
|
*/
|
|
public function findContributors() : array
|
|
{
|
|
return $this->findBy(['isTeamMember' => false], ['github' => 'asc']);
|
|
}
|
|
}
|