infinito/application/symfony/src/Domain/SourceManagement/TreeSourceInformationInterface.php

42 lines
864 B
PHP
Raw Normal View History

<?php
2018-11-17 13:32:35 +01:00
namespace Infinito\Domain\SourceManagement;
use Doctrine\Common\Collections\Collection;
/**
* Allows to get branches and leaves of a tree.
*
* @author kevinfrantz
*/
interface TreeSourceInformationInterface
{
/**
2018-11-17 13:32:35 +01:00
* Delivers the branches of the actual tree back.
*
* @return Collection
*/
2018-11-17 13:32:35 +01:00
public function getBranches(): Collection;
/**
2018-11-17 13:32:35 +01:00
* Delivers the members of the actual tree back.
*
* @return Collection
*/
2018-11-17 13:32:35 +01:00
public function getLeaves(): Collection;
/**
2018-11-17 13:32:35 +01:00
* Delivers all members till a infinite level of the tree back.
*
* @return Collection
*/
2018-11-17 13:32:35 +01:00
public function getAllLeaves(): Collection;
/**
2018-11-17 13:32:35 +01:00
* Delivers all branches till a infinite level of the actual tree back.
*
* @return Collection
*/
2018-11-17 13:32:35 +01:00
public function getAllBranches(): Collection;
}