Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/src/CourseBundle/Repository/CGroupRepository.php

31 lines
621 B

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Repository;
use Chamilo\CoreBundle\Repository\ResourceRepository;
use Chamilo\CourseBundle\Entity\CGroup;
/**
* Class CGroupRepository.
*/
final class CGroupRepository extends ResourceRepository
{
/**
* @param string $code
*/
public function findOneByCode($code): ?CGroup
{
return $this->getRepository()->findOneByCode($code);
}
/**
* @param string $name
*/
public function findOneByTitle($name): ?CGroup
{
return $this->getRepository()->findOneByTitle($name);
}
}