for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TournamentGenerator\Traits;
use TournamentGenerator\Containers\ContainerQuery;
use TournamentGenerator\Group;
use TournamentGenerator\Round;
/**
* Trait WithGroups
*
* @package TournamentGenerator\Traits
* @author Tomáš Vojík <[email protected]>
* @since 0.4
*/
trait WithGroups
{
* Get all groups in this object
* @return Group[]
public function getGroups() : array {
return $this->container->getHierarchyLevel(Group::class);
}
* Get groups container query
* @return ContainerQuery
public function queryGroups() : ContainerQuery {
return $this->container->getHierarchyLevelQuery(Group::class);