You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace Lc\SovBundle\Component;
-
- use Cocur\Slugify\Slugify;
-
- class ArrayComponent
- {
- public function contains(array $array, $entity): bool
- {
- foreach($array as $entityTest) {
- if(get_class($entityTest) == get_class($entity)
- && $entityTest->getId() == $entity->getId()) {
- return true;
- }
- }
-
- return false;
- }
- }
|