2018-11-16 20:44:54 +01:00
|
|
|
<?php
|
2018-11-17 13:32:35 +01:00
|
|
|
|
2018-11-16 20:44:54 +01:00
|
|
|
namespace App\Domain\SourceManagement;
|
|
|
|
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
|
|
|
|
|
interface TreeSourceServiceInterface
|
|
|
|
{
|
|
|
|
/**
|
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
|
|
|
}
|