1"use strict";(globalThis.webpackChunkstaticdocs_starter=globalThis.webpackChunkstaticdocs_starter||[]).push([[2019],{87379(e,t,n){n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>o,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"apis/Classes/ReflectionModule/getName","title":"getName","description":"This is a point-in-time snapshot of the API documentation from January 2026.","source":"@site/manual/apis/Classes/ReflectionModule/getName.md","sourceDirName":"apis/Classes/ReflectionModule","slug":"/apis/Classes/ReflectionModule/getName","permalink":"/apis/Classes/ReflectionModule/getName","draft":false,"unlisted":false,"editUrl":"https://github.com/hhvm/user-documentation/edit/main/manual/apis/Classes/ReflectionModule/getName.md","tags":[],"version":"current","frontMatter":{},"sidebar":"apiSidebar","previous":{"title":"getAttributesNamespaced","permalink":"/apis/Classes/ReflectionModule/getAttributesNamespaced"},"next":{"title":"hasAttribute","permalink":"/apis/Classes/ReflectionModule/hasAttribute"}}');var i=n(74848),a=n(28453);const o={},r=void 0,l={},c=[{value:"Returns",id:"returns",level:2}];function u(e){const t={admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{title:"Note",type:"info",children:(0,i.jsx)(t.p,{children:"This is a point-in-time snapshot of the API documentation from January 2026.\nGoing forward, we will not be maintaining a public copy of these references,\nand recommend users to refer to the built-in signature helpers available in\nthe Hack LSP instead for complete and up-to-date information."})}),"\n",(0,i.jsx)(t.p,{children:"Get the name of the file"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-Hack",children:"public function getName(): string;\n"})}),"\n",(0,i.jsx)(t.h2,{id:"returns",children:"Returns"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"string"})," - The name of the file"]}),"\n"]})]})}function d(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},28453(e,t,n){n.d(t,{R:()=>o,x:()=>r});var s=n(96540);const i={},a=s.createContext(i);function o(e){const t=s.useContext(a);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(a.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.