public static function registerSubclass()
    {
        if (isset(static::$avClassName))
        {
            if (!in_array(static::$avClassName, self::$registeredSubclasses))
            {
                self::$registeredSubclasses[static::$avClassName] = get_called_class();
            }
        } else
        {
            throw new \Exception("Cannot register a subclass that does not have a avClassName");
        }
    }
public static function registerSubclass()
    {
        if (isset(static::$avClassName))
        {
            if (!in_array(static::$avClassName, self::$registeredSubclasses))
            {
                self::$registeredSubclasses[static::$avClassName] = get_called_class();
            }
        } else
        {
            throw new \Exception("Cannot register a subclass that does not have a avClassName");
        }
    }
public static function registerSubclass ( ) { if ( isset ( static :: $ avClassName ) ) { if ( ! in_array ( static :: $ avClassName , self :: $ registeredSubclasses ) ) { self :: $ registeredSubclasses [ static :: $ avClassName ] = get_called_class ( ) ; } } else { throw new \ Exception ( "Cannot register a subclass that does not have a avClassName" ) ; } }
Register a subclass.  Should be called before any other Avos functions.
Cannot be called on the base class AVObject.

@throws \Exception
Register a subclass . Should be called before any other Avos functions . Cannot be called on the base class AVObject .