src/MultiTierArchitecture/Mapper/Definition/EntityMapperAbstract.php
public function getMappedFirstEntitiesByEntityType($entityName)
    {
        $entities = [];
        foreach ($this->data as $data) {
            $entity = $this->createAndReturnNewFirstEntity($data, $entityName);
            if ($entity) {
                $entities[] = $entity;
            }
        }
        return $entities;
    }
public function getMappedFirstEntitiesByEntityType($entityName)
    {
        $entities = [];
        foreach ($this->data as $data) {
            $entity = $this->createAndReturnNewFirstEntity($data, $entityName);
            if ($entity) {
                $entities[] = $entity;
            }
        }
        return $entities;
    }
public function getMappedFirstEntitiesByEntityType ( $ entityName ) { $ entities = [ ] ; foreach ( $ this -> data as $ data ) { $ entity = $ this -> createAndReturnNewFirstEntity ( $ data , $ entityName ) ; if ( $ entity ) { $ entities [ ] = $ entity ; } } return $ entities ; }
Get entities for the passed argument that represents the name of the entity

@param string  $entityName  Entity name

@return array Array of entities
Get entities for the passed argument that represents the name of the entity