public static function getEntityClassFromObjectID($objectID)
    {
        $type = explode('::', $objectID)[0];

        if (in_array($type, static::getEntities(), true)) {
            return $type;
        }

        throw new EntityNotFoundInObjectID("Entity class from ObjectID {$objectID} not found.");
    }
public static function getEntityClassFromObjectID($objectID)
    {
        $type = explode('::', $objectID)[0];

        if (in_array($type, static::getEntities(), true)) {
            return $type;
        }

        throw new EntityNotFoundInObjectID("Entity class from ObjectID {$objectID} not found.");
    }
public static function getEntityClassFromObjectID ( $ objectID ) { $ type = explode ( '::' , $ objectID ) [ 0 ] ; if ( in_array ( $ type , static :: getEntities ( ) , true ) ) { return $ type ; } throw new EntityNotFoundInObjectID ( "Entity class from ObjectID {$objectID} not found." ) ; }
Returns an entity class name from the provided object id.

@param  string $objectID

@return object
Returns an entity class name from the provided object id .