mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-26 21:44:02 +01:00
42 lines
864 B
PHP
42 lines
864 B
PHP
<?php
|
|
|
|
namespace Infinito\Domain\SourceManagement;
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
|
/**
|
|
* Allows to get branches and leaves of a tree.
|
|
*
|
|
* @author kevinfrantz
|
|
*/
|
|
interface TreeSourceInformationInterface
|
|
{
|
|
/**
|
|
* Delivers the branches of the actual tree back.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getBranches(): Collection;
|
|
|
|
/**
|
|
* Delivers the members of the actual tree back.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getLeaves(): Collection;
|
|
|
|
/**
|
|
* Delivers all members till a infinite level of the tree back.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getAllLeaves(): Collection;
|
|
|
|
/**
|
|
* Delivers all branches till a infinite level of the actual tree back.
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getAllBranches(): Collection;
|
|
}
|