mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Wrote tests for dimension helper method and optimized dimension helper
This commit is contained in:
@@ -4,7 +4,7 @@ namespace App\Entity\Method;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Helper\DimensionHelper;
|
||||
use App\Entity\Attribut\MembersAttributInterface;
|
||||
use App\Helper\DimensionHelperInterface;
|
||||
|
||||
/**
|
||||
* @todo Create test for trait!
|
||||
@@ -15,7 +15,7 @@ trait CollectionDimensionHelperMethod
|
||||
{
|
||||
public function getDimensions(?int $dimension = null, Collection $elements = null): Collection
|
||||
{
|
||||
$dimensionHelper = new DimensionHelper(__FUNCTION__, MembersAttributInterface::class, $this, 'collection');
|
||||
$dimensionHelper = new DimensionHelper(__FUNCTION__, DimensionHelperInterface::class, $this, 'collection');
|
||||
|
||||
return $dimensionHelper->getDimensions($dimension, $elements);
|
||||
}
|
||||
|
Reference in New Issue
Block a user