@@ 354-363 (lines=10) @@ | ||
351 | * |
|
352 | * @return int |
|
353 | */ |
|
354 | public function getOpportunitiesCount( |
|
355 | AclHelper $aclHelper, |
|
356 | DateTime $start = null, |
|
357 | DateTime $end = null, |
|
358 | $owners = [] |
|
359 | ) { |
|
360 | $qb = $this->createOpportunitiesCountQb($start, $end, $owners); |
|
361 | ||
362 | return $aclHelper->apply($qb)->getSingleScalarResult(); |
|
363 | } |
|
364 | ||
365 | /** |
|
366 | * @param AclHelper $aclHelper |
|
@@ 373-383 (lines=11) @@ | ||
370 | * |
|
371 | * @return int |
|
372 | */ |
|
373 | public function getNewOpportunitiesCount( |
|
374 | AclHelper $aclHelper, |
|
375 | DateTime $start = null, |
|
376 | DateTime $end = null, |
|
377 | $owners = [] |
|
378 | ) { |
|
379 | $qb = $this->createOpportunitiesCountQb($start, $end, $owners) |
|
380 | ->andWhere('o.closeDate IS NULL'); |
|
381 | ||
382 | return $aclHelper->apply($qb)->getSingleScalarResult(); |
|
383 | } |
|
384 | ||
385 | /** |
|
386 | * @param DateTime $start |