public static function create(array $parsed)
    {
        $result = new File();
        $name = Utilities::tryGetValue($parsed, Resources::QP_NAME);
        $result->setName($name);
        $properties = Utilities::tryGetValue($parsed, Resources::QP_PROPERTIES);
        $length = \intval(Utilities::tryGetValue($properties, Resources::QP_CONTENT_LENGTH));
        $result->setLength($length);
        return $result;
    }
public static function create(array $parsed)
    {
        $result = new File();
        $name = Utilities::tryGetValue($parsed, Resources::QP_NAME);
        $result->setName($name);
        $properties = Utilities::tryGetValue($parsed, Resources::QP_PROPERTIES);
        $length = \intval(Utilities::tryGetValue($properties, Resources::QP_CONTENT_LENGTH));
        $result->setLength($length);
        return $result;
    }
public static function create ( array $ parsed ) { $ result = new File ( ) ; $ name = Utilities :: tryGetValue ( $ parsed , Resources :: QP_NAME ) ; $ result -> setName ( $ name ) ; $ properties = Utilities :: tryGetValue ( $ parsed , Resources :: QP_PROPERTIES ) ; $ length = \ intval ( Utilities :: tryGetValue ( $ properties , Resources :: QP_CONTENT_LENGTH ) ) ; $ result -> setLength ( $ length ) ; return $ result ; }
Creates a File object using the parsed array.

@param  array $parsed The parsed array that contains the object information.

@return File
Creates a File object using the parsed array .