src/EntityDescriptor/PermanentEntity.php
public static function getEntityObject($objType, $objID=null) {
		if( is_object($objType) ) {
			$objID		= $objType->entity_id;
			$objType	= $objType->entity_type;
		}
		$class = isset(static::$entityClasses[$objType]) ? static::$entityClasses[$objType] : $objType;
		return $class::load($objID);
	}
public static function getEntityObject($objType, $objID=null) {
		if( is_object($objType) ) {
			$objID		= $objType->entity_id;
			$objType	= $objType->entity_type;
		}
		$class = isset(static::$entityClasses[$objType]) ? static::$entityClasses[$objType] : $objType;
		return $class::load($objID);
	}
public static function getEntityObject ( $ objType , $ objID = null ) { if ( is_object ( $ objType ) ) { $ objID = $ objType -> entity_id ; $ objType = $ objType -> entity_type ; } $ class = isset ( static :: $ entityClasses [ $ objType ] ) ? static :: $ entityClasses [ $ objType ] : $ objType ; return $ class :: load ( $ objID ) ; }
Get entity instance by type and id

@param string $objType
@param string $objID
@return PermanentEntity
Get entity instance by type and id