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