Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2022-08-14 19:39:07 +02:00
parent 639829f5c5
commit 8e6bc25d2e
19 changed files with 39 additions and 40 deletions

View file

@ -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;

View file

@ -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
{

View file

@ -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
{