Methods Available from the File class

Drupal 8 File Class Methods.  Oh, and this reminder of a totally different story...
Drupal 8 File Class Methods. Oh, and this reminder of a totally different story...

Continuing, with posting the methods of various Drupal8 classes here for reference purposes, the methods of the File class:

    [0] => getFilename
    [1] => setFilename
    [2] => getFileUri
    [3] => setFileUri
    [4] => url
    [5] => getMimeType
    [6] => setMimeType
    [7] => getSize
    [8] => setSize
    [9] => getCreatedTime
    [10] => getOwner
    [11] => getOwnerId
    [12] => setOwnerId
    [13] => setOwner
    [14] => isPermanent
    [15] => isTemporary
    [16] => setPermanent
    [17] => setTemporary
    [18] => preCreate
    [19] => preSave
    [20] => preDelete
    [21] => baseFieldDefinitions
    [22] => __construct
    [23] => postCreate
    [24] => setNewRevision
    [25] => isNewRevision
    [26] => isDefaultRevision
    [27] => isRevisionTranslationAffected
    [28] => setRevisionTranslationAffected
    [29] => isDefaultTranslation
    [30] => getRevisionId
    [31] => isTranslatable
    [32] => preSaveRevision
    [33] => validate
    [34] => isValidationRequired
    [35] => setValidationRequired
    [36] => __sleep
    [37] => id
    [38] => bundle
    [39] => uuid
    [40] => hasField
    [41] => get
    [42] => set
    [43] => getFields
    [44] => getTranslatableFields
    [45] => getIterator
    [46] => getFieldDefinition
    [47] => getFieldDefinitions
    [48] => toArray
    [49] => access
    [50] => language
    [51] => onChange
    [52] => getTranslation
    [53] => getUntranslated
    [54] => hasTranslation
    [55] => isNewTranslation
    [56] => addTranslation
    [57] => removeTranslation
    [58] => getTranslationLanguages
    [59] => updateOriginalValues
    [60] => __get
    [61] => __set
    [62] => __isset
    [63] => __unset
    [64] => createDuplicate
    [65] => __clone
    [66] => label
    [67] => referencedEntities
    [68] => bundleFieldDefinitions
    [69] => hasTranslationChanges
    [70] => isNew
    [71] => enforceIsNew
    [72] => getEntityTypeId
    [73] => urlInfo
    [74] => toUrl
    [75] => hasLinkTemplate
    [76] => link
    [77] => toLink
    [78] => uriRelationships
    [79] => save
    [80] => delete
    [81] => getEntityType
    [82] => postSave
    [83] => postDelete
    [84] => postLoad
    [85] => getCacheContexts
    [86] => getCacheTagsToInvalidate
    [87] => getCacheTags
    [88] => getCacheMaxAge
    [89] => load
    [90] => loadMultiple
    [91] => create
    [92] => getOriginalId
    [93] => setOriginalId
    [94] => getTypedData
    [95] => getConfigDependencyKey
    [96] => getConfigDependencyName
    [97] => getConfigTarget
    [98] => addCacheContexts
    [99] => addCacheTags
    [100] => mergeCacheMaxAge
    [101] => addCacheableDependency
    [102] => traitSleep
    [103] => __wakeup
    [104] => getChangedTime
    [105] => setChangedTime
    [106] => getChangedTimeAcrossTranslations

Tags: