mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-14 06:07:18 +02:00
Optimized documentation and class naming
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\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;
|
||||
}
|
Reference in New Issue
Block a user