Deprecated DimensionHelper

This commit is contained in:
Kevin Frantz 2018-11-06 20:38:07 +01:00
parent 43761e472f
commit f89d20d365
2 changed files with 18 additions and 1 deletions

View File

@ -10,7 +10,9 @@ use Doctrine\Common\Collections\Collection;
* *
* @author kevinfrantz * @author kevinfrantz
* *
* @todo Implement tests for all functions * @deprecated
*
* @todo Implement as service!
*/ */
final class DimensionHelper implements DimensionHelperInterface final class DimensionHelper implements DimensionHelperInterface
{ {
@ -58,6 +60,8 @@ final class DimensionHelper implements DimensionHelperInterface
} }
/** /**
* @deprecated
*
* @param int $dimension * @param int $dimension
* The dimensions start with 1 for the elements of the actuall dimension and NULL for all elements * The dimensions start with 1 for the elements of the actuall dimension and NULL for all elements
* @param Collection $elements * @param Collection $elements

View File

@ -4,7 +4,20 @@ namespace App\Helper;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
/**
* @deprecated
*
* @author kevinfrantz
*/
interface DimensionHelperInterface interface DimensionHelperInterface
{ {
/**
* @deprecated
*
* @param int $dimension
* @param Collection $elements
*
* @return Collection
*/
public function getDimensions(?int $dimension = null, Collection $elements = null): Collection; public function getDimensions(?int $dimension = null, Collection $elements = null): Collection;
} }