src/MultiTierArchitecture/Mapper/Definition/EntityMapperAbstract.php
private function createAndReturnNewSecondEntity($data, $secondEntityName)
    {
        /** @var EntityInterface $entity */
        $entity = $this->getSecondEntityByName($secondEntityName);
        if (is_array($data)) {
            return $this->mapAttributesFromFirstEntityToSecondEntityAndReturnEntity($data, $entity);
        }

        return null;
    }
private function createAndReturnNewSecondEntity($data, $secondEntityName)
    {
        /** @var EntityInterface $entity */
        $entity = $this->getSecondEntityByName($secondEntityName);
        if (is_array($data)) {
            return $this->mapAttributesFromFirstEntityToSecondEntityAndReturnEntity($data, $entity);
        }

        return null;
    }
private function createAndReturnNewSecondEntity ( $ data , $ secondEntityName ) { /** @var EntityInterface $entity */ $ entity = $ this -> getSecondEntityByName ( $ secondEntityName ) ; if ( is_array ( $ data ) ) { return $ this -> mapAttributesFromFirstEntityToSecondEntityAndReturnEntity ( $ data , $ entity ) ; } return null ; }
Return a new second entity

@param array   $data              Data array that represents entity's attributes
@param string  $secondEntityName  Name of the entity

@return EntityInterface|null
Return a new second entity