protected function getMappable($entity) : InternallyMappable
    {
        if ($entity instanceof InternallyMappable) {
            return $entity;
        }

        $factory = new Factory();
        $wrappedEntity = $factory->make($entity);

        return $wrappedEntity;
    }
protected function getMappable($entity) : InternallyMappable
    {
        if ($entity instanceof InternallyMappable) {
            return $entity;
        }

        $factory = new Factory();
        $wrappedEntity = $factory->make($entity);

        return $wrappedEntity;
    }
protected function getMappable ( $ entity ) : InternallyMappable { if ( $ entity instanceof InternallyMappable ) { return $ entity ; } $ factory = new Factory ( ) ; $ wrappedEntity = $ factory -> make ( $ entity ) ; return $ wrappedEntity ; }
Return internally mappable if not mappable.

@param mixed $entity

@return InternallyMappable
Return internally mappable if not mappable .