public static function getReflection(IMapper $mapper = null)
    {
        $class = get_called_class();
        $mapperClass = $mapper !== null ? get_class($mapper) : '';
        if (!isset(static::$reflections[$class][$mapperClass])) {
            static::$reflections[$class][$mapperClass] = new EntityReflection($class, $mapper, static::getReflectionProvider());
        }
        return static::$reflections[$class][$mapperClass];
    }
public static function getReflection(IMapper $mapper = null)
    {
        $class = get_called_class();
        $mapperClass = $mapper !== null ? get_class($mapper) : '';
        if (!isset(static::$reflections[$class][$mapperClass])) {
            static::$reflections[$class][$mapperClass] = new EntityReflection($class, $mapper, static::getReflectionProvider());
        }
        return static::$reflections[$class][$mapperClass];
    }
public static function getReflection ( IMapper $ mapper = null ) { $ class = get_called_class ( ) ; $ mapperClass = $ mapper !== null ? get_class ( $ mapper ) : '' ; if ( ! isset ( static :: $ reflections [ $ class ] [ $ mapperClass ] ) ) { static :: $ reflections [ $ class ] [ $ mapperClass ] = new EntityReflection ( $ class , $ mapper , static :: getReflectionProvider ( ) ) ; } return static :: $ reflections [ $ class ] [ $ mapperClass ] ; }
Gets reflection of current entity

@param IMapper|null $mapper
@return EntityReflection
Gets reflection of current entity