mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 17:39:06 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
639829f5c5
commit
8e6bc25d2e
19 changed files with 39 additions and 40 deletions
|
@ -30,17 +30,18 @@ abstract class AbstractPartsContainingRepository extends StructuralDBElementRepo
|
|||
/**
|
||||
* Returns all parts associated with this element.
|
||||
*
|
||||
* @param AbstractPartsContainingDBElement $element the element for which the parts should be determined
|
||||
* @param array $order_by The order of the parts. Format ['name' => 'ASC']
|
||||
* @param object $element the element for which the parts should be determined
|
||||
* @param array $order_by The order of the parts. Format ['name' => 'ASC']
|
||||
*
|
||||
* @return Part[]
|
||||
* @return Part
|
||||
*/
|
||||
abstract public function getParts(object $element, array $order_by = ['name' => 'ASC']): array;
|
||||
|
||||
/**
|
||||
* Gets the count of the parts associated with this element.
|
||||
*
|
||||
* @param AbstractPartsContainingDBElement $element the element for which the parts should be determined
|
||||
* @param object $element the element for which the parts should be determined
|
||||
* @return int
|
||||
*/
|
||||
abstract public function getPartsCount(object $element): int;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue