mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 21:44:28 +02:00
Improved typing and phpdoc type annotations
This commit is contained in:
parent
3817ba774d
commit
b7c8ca2a48
39 changed files with 189 additions and 129 deletions
|
@ -66,12 +66,16 @@ class NodesListBuilder
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a flattened list of all (recursive) children elements of the given AbstractStructuralDBElement.
|
||||
* The value is cached for performance reasons.
|
||||
* Returns a flattened list of all (recursive) children elements of the given AbstractStructuralDBElement.
|
||||
* The value is cached for performance reasons.
|
||||
*
|
||||
* @template T of AbstractStructuralDBElement
|
||||
* @param T $element
|
||||
* @return T[]
|
||||
*
|
||||
* @param T $element
|
||||
*
|
||||
* @return AbstractStructuralDBElement[]
|
||||
*
|
||||
* @phpstan-return list<T>
|
||||
*/
|
||||
public function getChildrenFlatList(AbstractStructuralDBElement $element): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue