. */ namespace App\Entity\Base; use App\Entity\Parts\Part; 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'] * * @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 */ public function getPartsCount(object $element): int; }