mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 11:48:49 +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;
|
||||
|
||||
|
|
|
@ -195,9 +195,6 @@ class LogEntryRepository extends DBElementRepository
|
|||
* @return AbstractDBElement|null returns the associated DBElement or null if the log either has no target or the element
|
||||
* was deleted from DB
|
||||
*
|
||||
* @throws ORMException
|
||||
* @throws OptimisticLockException
|
||||
* @throws TransactionRequiredException
|
||||
*/
|
||||
public function getTargetElement(AbstractLogEntry $logEntry): ?AbstractDBElement
|
||||
{
|
||||
|
|
|
@ -29,7 +29,9 @@ use InvalidArgumentException;
|
|||
class StorelocationRepository extends AbstractPartsContainingRepository
|
||||
{
|
||||
/**
|
||||
* @param Storelocation $element
|
||||
* @param object $element
|
||||
* @param array $order_by
|
||||
* @return array
|
||||
*/
|
||||
public function getParts(object $element, array $order_by = ['name' => 'ASC']): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue