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

37 lines
773 B
PHP
Raw Normal View History

<?php
2018-11-17 13:32:35 +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.
*
* @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;
}