mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -20,24 +20,24 @@
|
|||
|
||||
namespace App\Entity\Base;
|
||||
|
||||
|
||||
use App\Entity\Parts\Part;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
interface PartsContainingRepositoryInterface
|
||||
{
|
||||
/**
|
||||
* Returns all parts associated with this element.
|
||||
* @param object $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[]
|
||||
*/
|
||||
public function getParts(object $element, array $order_by = ['name' => 'ASC']): array;
|
||||
|
||||
/**
|
||||
* Gets the count of the parts associated with this element.
|
||||
* @param object $element The element for which the parts should be determined.
|
||||
* @return int
|
||||
*
|
||||
* @param object $element the element for which the parts should be determined
|
||||
*/
|
||||
public function getPartsCount(object $element): int;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue