[{"data":1,"prerenderedAt":701},["ShallowReactive",2],{"libs":3,"navigation-laravel-api-revisions":115,"\u002Flaravel-api-revisions\u002Freference\u002Frevision-methods":299,"\u002Flaravel-api-revisions\u002Freference\u002Frevision-methods-surround":696},[4,45,69,95],{"id":5,"color":6,"compatibility":7,"extension":20,"icon":21,"links":22,"meta":27,"name":28,"order":29,"package":30,"related":31,"stem":34,"tagline":35,"__hash__":36,"slug":37,"repository":38,"branch":39,"path":40,"collection":41,"entry":42,"home":43,"version":44},"laravel_json_api_meta\u002Fdocs\u002Fsite\u002Flib.yml","violet",[8,13,16],{"version":9,"php":10,"laravel":11,"status":12},"3.x","^8.3","^12.46 || ^13.0","active",{"version":14,"php":10,"laravel":11,"status":15},"2.x","eol",{"version":17,"php":18,"laravel":19,"status":15},"1.x","^8.1","^10.0 || ^11.0 || ^12.0 || ^13.0","yml","i-lucide-braces",[23],{"label":24,"to":25,"icon":26},"JSON:API 1.1","https:\u002F\u002Fjsonapi.org\u002Fformat\u002F","i-lucide-book-marked",{},"Laravel JSON:API",10,"ark4ne\u002Flaravel-json-api",[32,33],"laravel-api-revisions","laravel-openapi-generator","docs\u002Fsite\u002Flib","JSON:API 1.1 resources for Laravel, with typed values, validated includes and fieldsets, and API revisions.","ILGoVp9rzKYDQc18VV8kkXy3EQOQ8rv87JblFKXYDrU","laravel-json-api","Ark4ne\u002Flaravel-json-api","master","docs\u002Fsite","laravel_json_api","\u002Flaravel-json-api\u002Fgetting-started\u002Fintroduction","\u002Flaravel-json-api","v3.0.0",{"id":46,"color":47,"compatibility":48,"extension":20,"icon":50,"links":51,"meta":56,"name":57,"order":58,"package":59,"related":60,"stem":34,"tagline":61,"__hash__":62,"slug":32,"repository":63,"branch":64,"path":40,"collection":65,"entry":66,"home":67,"version":68},"laravel_api_revisions_meta\u002Fdocs\u002Fsite\u002Flib.yml","amber",[49],{"version":17,"php":10,"laravel":11,"status":12},"i-lucide-git-branch",[52],{"label":53,"to":54,"icon":55},"Agent skill","https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-api-revisions\u002Ftree\u002Fmain\u002Fskills\u002Flaravel-api-revisions","i-lucide-bot",{},"Laravel API Revisions",20,"ark4ne\u002Flaravel-api-revisions",[37,33],"Typed schemas for Laravel resources and form requests, evolved through dated API revisions, Stripe-style.","w24MBVK4_XliIZ8nVcfnuT9OgR-m-Ytxz31Pxua_mLM","Ark4ne\u002Flaravel-api-revisions","main","laravel_api_revisions","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fintroduction","\u002Flaravel-api-revisions","v1.0.0",{"id":70,"color":71,"compatibility":72,"extension":20,"icon":77,"links":78,"meta":82,"name":83,"order":84,"package":85,"related":86,"stem":34,"tagline":88,"__hash__":89,"slug":33,"repository":90,"branch":39,"path":40,"collection":91,"entry":92,"home":93,"version":94},"laravel_openapi_generator_meta\u002Fdocs\u002Fsite\u002Flib.yml","emerald",[73,75],{"version":17,"php":10,"laravel":74,"status":12},"^13.0",{"version":76,"php":18,"laravel":19,"status":15},"0.6","i-lucide-file-json",[79],{"label":80,"to":81,"icon":26},"OpenAPI Specification","https:\u002F\u002Fspec.openapis.org\u002Foas\u002Flatest.html",{},"Laravel OpenAPI Generator",30,"ark4ne\u002Flaravel-openapi-generator",[87,37,32],"openapi-writer","Generates OpenAPI 3.0, 3.1 and 3.2 documents from a Laravel application, its routes, form requests and resources.","DTt0SVqegMImLmWmwL8LCW5lxRCWFYcnBFOaquLpVwc","Ark4ne\u002Flaravel-openapi-generator","laravel_openapi_generator","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Fintroduction","\u002Flaravel-openapi-generator","v1.2.0",{"id":96,"color":97,"compatibility":98,"extension":20,"icon":101,"links":102,"meta":104,"name":105,"order":106,"package":107,"related":108,"stem":34,"tagline":109,"__hash__":110,"slug":87,"repository":111,"branch":64,"path":40,"collection":112,"entry":113,"home":114,"version":68},"openapi_writer_meta\u002Fdocs\u002Fsite\u002Flib.yml","sky",[99],{"version":17,"php":100,"status":12},"^8.2","i-lucide-file-pen-line",[103],{"label":80,"to":81,"icon":26},{},"OpenAPI Writer",40,"ark4ne\u002Fopenapi-writer",[33],"Framework-agnostic, fluent and immutable PHP builder for OpenAPI 3.0, 3.1 and 3.2 documents, written as JSON or YAML and validated.","JFQcdQ9GEChOkfRKibLjoxZOfnt6HYNsayX2melOzMk","Ark4ne\u002Fopenapi-writer","openapi_writer","\u002Fopenapi-writer\u002Fgetting-started\u002Fintroduction","\u002Fopenapi-writer",[116,135,153,175,205,235,257,287],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-api-revisions\u002Fgetting-started","laravel-api-revisions\u002F1.getting-started",[124,127,131],{"title":125,"path":66,"stem":126,"since":118,"experimental":119},"Introduction","laravel-api-revisions\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-api-revisions\u002Fgetting-started\u002Finstallation","laravel-api-revisions\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fquick-start","laravel-api-revisions\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Revisions","i-lucide-calendar-clock","\u002Flaravel-api-revisions\u002Frevisions","laravel-api-revisions\u002F2.revisions",[141,145,149],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"The revision enum","\u002Flaravel-api-revisions\u002Frevisions\u002Fthe-revision-enum","laravel-api-revisions\u002F2.revisions\u002F1.the-revision-enum",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Resolving the revision","\u002Flaravel-api-revisions\u002Frevisions\u002Fresolving-the-revision","laravel-api-revisions\u002F2.revisions\u002F2.resolving-the-revision",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Outside HTTP","\u002Flaravel-api-revisions\u002Frevisions\u002Foutside-http","laravel-api-revisions\u002F2.revisions\u002F3.outside-http",{"title":154,"since":118,"experimental":119,"icon":155,"path":156,"stem":157,"children":158,"page":119},"Declaring the head","i-lucide-file-code","\u002Flaravel-api-revisions\u002Fdeclaring-the-head","laravel-api-revisions\u002F3.declaring-the-head",[159,163,167,171],{"title":160,"path":161,"stem":162,"since":118,"experimental":119},"Schema vocabulary","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fschema-vocabulary","laravel-api-revisions\u002F3.declaring-the-head\u002F1.schema-vocabulary",{"title":164,"path":165,"stem":166,"since":118,"experimental":119},"Sources and conditions","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fsources-and-conditions","laravel-api-revisions\u002F3.declaring-the-head\u002F2.sources-and-conditions",{"title":168,"path":169,"stem":170,"since":118,"experimental":119},"Responses","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fresponses","laravel-api-revisions\u002F3.declaring-the-head\u002F3.responses",{"title":172,"path":173,"stem":174,"since":118,"experimental":119},"Requests","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Frequests","laravel-api-revisions\u002F3.declaring-the-head\u002F4.requests",{"title":176,"since":118,"experimental":119,"icon":177,"path":178,"stem":179,"children":180,"page":119},"Evolving the API","i-lucide-history","\u002Flaravel-api-revisions\u002Fevolving-the-api","laravel-api-revisions\u002F4.evolving-the-api",[181,185,189,193,197,201],{"title":182,"path":183,"stem":184,"since":118,"experimental":119},"Adding a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F1.adding-a-revision",{"title":186,"path":187,"stem":188,"since":118,"experimental":119},"Adding and removing fields","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-and-removing","laravel-api-revisions\u002F4.evolving-the-api\u002F2.adding-and-removing",{"title":190,"path":191,"stem":192,"since":118,"experimental":119},"Renaming and retyping","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Frenaming-and-retyping","laravel-api-revisions\u002F4.evolving-the-api\u002F3.renaming-and-retyping",{"title":194,"path":195,"stem":196,"since":118,"experimental":119},"Conversions","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fconversions","laravel-api-revisions\u002F4.evolving-the-api\u002F4.conversions",{"title":198,"path":199,"stem":200,"since":118,"experimental":119},"Class lifetime","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fclass-lifetime","laravel-api-revisions\u002F4.evolving-the-api\u002F5.class-lifetime",{"title":202,"path":203,"stem":204,"since":118,"experimental":119},"Retiring a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fretiring-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F6.retiring-a-revision",{"title":206,"since":118,"experimental":119,"icon":207,"path":208,"stem":209,"children":210,"page":119},"Tooling","i-lucide-wrench","\u002Flaravel-api-revisions\u002Ftooling","laravel-api-revisions\u002F5.tooling",[211,215,219,223,227,231],{"title":212,"path":213,"stem":214,"since":118,"experimental":119},"Check","\u002Flaravel-api-revisions\u002Ftooling\u002Fcheck","laravel-api-revisions\u002F5.tooling\u002F1.check",{"title":216,"path":217,"stem":218,"since":118,"experimental":119},"Lock","\u002Flaravel-api-revisions\u002Ftooling\u002Flock","laravel-api-revisions\u002F5.tooling\u002F2.lock",{"title":220,"path":221,"stem":222,"since":118,"experimental":119},"Export and changelog","\u002Flaravel-api-revisions\u002Ftooling\u002Fexport-and-changelog","laravel-api-revisions\u002F5.tooling\u002F3.export-and-changelog",{"title":224,"path":225,"stem":226,"since":118,"experimental":119},"Testing","\u002Flaravel-api-revisions\u002Ftooling\u002Ftesting","laravel-api-revisions\u002F5.tooling\u002F4.testing",{"title":228,"path":229,"stem":230,"since":118,"experimental":119},"Static analysis","\u002Flaravel-api-revisions\u002Ftooling\u002Fstatic-analysis","laravel-api-revisions\u002F5.tooling\u002F5.static-analysis",{"title":232,"path":233,"stem":234,"since":118,"experimental":119},"Performance and Octane","\u002Flaravel-api-revisions\u002Ftooling\u002Fperformance-and-octane","laravel-api-revisions\u002F5.tooling\u002F6.performance-and-octane",{"title":236,"since":118,"experimental":119,"icon":237,"path":238,"stem":239,"children":240,"page":119},"Extending","i-lucide-puzzle","\u002Flaravel-api-revisions\u002Fextending","laravel-api-revisions\u002F6.extending",[241,245,249,253],{"title":242,"path":243,"stem":244,"since":118,"experimental":119},"Custom types","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-types","laravel-api-revisions\u002F6.extending\u002F1.custom-types",{"title":246,"path":247,"stem":248,"since":118,"experimental":119},"Descriptor macros","\u002Flaravel-api-revisions\u002Fextending\u002Fdescriptor-macros","laravel-api-revisions\u002F6.extending\u002F2.descriptor-macros",{"title":250,"path":251,"stem":252,"since":118,"experimental":119},"Custom checks","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-checks","laravel-api-revisions\u002F6.extending\u002F3.custom-checks",{"title":254,"path":255,"stem":256,"since":118,"experimental":119},"Without Laravel","\u002Flaravel-api-revisions\u002Fextending\u002Fwithout-laravel","laravel-api-revisions\u002F6.extending\u002F4.without-laravel",{"title":258,"since":118,"experimental":119,"icon":259,"path":260,"stem":261,"children":262,"page":119},"Reference","i-lucide-book-open","\u002Flaravel-api-revisions\u002Freference","laravel-api-revisions\u002F7.reference",[263,267,271,275,279,283],{"title":264,"path":265,"stem":266,"since":118,"experimental":119},"Configuration","\u002Flaravel-api-revisions\u002Freference\u002Fconfiguration","laravel-api-revisions\u002F7.reference\u002F1.configuration",{"title":268,"path":269,"stem":270,"since":118,"experimental":119},"Schema helpers","\u002Flaravel-api-revisions\u002Freference\u002Fschema-helpers","laravel-api-revisions\u002F7.reference\u002F2.schema-helpers",{"title":272,"path":273,"stem":274,"since":118,"experimental":119},"Revision methods","\u002Flaravel-api-revisions\u002Freference\u002Frevision-methods","laravel-api-revisions\u002F7.reference\u002F3.revision-methods",{"title":276,"path":277,"stem":278,"since":118,"experimental":119},"Commands","\u002Flaravel-api-revisions\u002Freference\u002Fcommands","laravel-api-revisions\u002F7.reference\u002F4.commands",{"title":280,"path":281,"stem":282,"since":118,"experimental":119},"Check diagnostics","\u002Flaravel-api-revisions\u002Freference\u002Fcheck-diagnostics","laravel-api-revisions\u002F7.reference\u002F5.check-diagnostics",{"title":284,"path":285,"stem":286,"since":118,"experimental":119},"Exceptions","\u002Flaravel-api-revisions\u002Freference\u002Fexceptions","laravel-api-revisions\u002F7.reference\u002F6.exceptions",{"title":288,"path":289,"children":290},"Releases","\u002Flaravel-api-revisions\u002Freleases",[291,295],{"title":292,"path":293,"stem":294,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-api-revisions\u002Fupgrade","laravel-api-revisions\u002FUPGRADE",{"title":296,"path":297,"stem":298,"since":118,"experimental":119},"Changelog","\u002Flaravel-api-revisions\u002Fchangelog","laravel-api-revisions\u002FCHANGELOG",{"id":300,"title":272,"body":301,"description":689,"experimental":119,"extension":690,"links":118,"meta":691,"navigation":692,"path":273,"rawbody":693,"seo":694,"since":118,"stem":274,"__hash__":695},"laravel_api_revisions\u002Flaravel-api-revisions\u002F7.reference\u002F3.revision-methods.md",{"type":302,"value":303,"toc":684},"minimark",[304,323,328,500,508,620,627,667,680],[305,306,307,311,312,315,316,319,320,322],"p",{},[308,309,310],"code",{},"Ark4ne\\ApiRevisions\\Revisions\\Revision"," is the interface of your enum; the trait\n",[308,313,314],{},"Ark4ne\\ApiRevisions\\Revisions\\IsRevision"," implements it, except ",[308,317,318],{},"order()",". Cases are compared by their place in\n",[308,321,318],{},", never by declaration order.",[324,325,327],"h2",{"id":326},"methods","Methods",[329,330,331,344],"table",{},[332,333,334],"thead",{},[335,336,337,341],"tr",{},[338,339,340],"th",{},"Method",[338,342,343],{},"Returns",[345,346,347,358,371,383,395,407,424,439,449,459,472,486],"tbody",{},[335,348,349,355],{},[350,351,352],"td",{},[308,353,354],{},"static order(): array",[350,356,357],{},"every case, oldest first; the last is the head (written by you)",[335,359,360,365],{},[350,361,362],{},[308,363,364],{},"isBefore(Revision $other): bool",[350,366,367,368],{},"strictly older than ",[308,369,370],{},"$other",[335,372,373,378],{},[350,374,375],{},[308,376,377],{},"isAfter(Revision $other): bool",[350,379,380,381],{},"strictly newer than ",[308,382,370],{},[335,384,385,390],{},[350,386,387],{},[308,388,389],{},"isAtMost(Revision $other): bool",[350,391,392,394],{},[308,393,370],{}," or older",[335,396,397,402],{},[350,398,399],{},[308,400,401],{},"isAtLeast(Revision $other): bool",[350,403,404,406],{},[308,405,370],{}," or newer",[335,408,409,414],{},[350,410,411],{},[308,412,413],{},"previous(): ?static",[350,415,416,417,419,420,423],{},"the previous case in ",[308,418,318],{},", ",[308,421,422],{},"null"," for the oldest",[335,425,426,431],{},[350,427,428],{},[308,429,430],{},"next(): ?static",[350,432,433,434,419,436,438],{},"the next case in ",[308,435,318],{},[308,437,422],{}," for the head",[335,440,441,446],{},[350,442,443],{},[308,444,445],{},"static latest(): static",[350,447,448],{},"the head",[335,450,451,456],{},[350,452,453],{},[308,454,455],{},"static oldest(): static",[350,457,458],{},"the oldest revision",[335,460,461,466],{},[350,462,463],{},[308,464,465],{},"static current(): static",[350,467,468,469],{},"the revision of the running request, or of the innermost ",[308,470,471],{},"using()",[335,473,474,479],{},[350,475,476],{},[308,477,478],{},"static using(Revision $revision, Closure $callback): mixed",[350,480,481,482,485],{},"runs the callback with ",[308,483,484],{},"$revision"," current, returns what it returns",[335,487,488,493],{},[350,489,490],{},[308,491,492],{},"meta(): Meta",[350,494,495,496,499],{},"the case's ",[308,497,498],{},"#[Meta]",", an empty one when none",[324,501,503,504],{"id":502},"meta","#",[505,506,507],"span",{},"Meta",[509,510,515],"pre",{"className":511,"code":512,"language":513,"meta":514,"style":514},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","#[Meta(\n    string $description = '',\n    ?string $publishedAt = null,\n    ?string $deprecatedAt = null,\n    ?string $sunsetAt = null,\n)]\n","php","",[308,516,517,532,556,578,596,614],{"__ignoreMap":514},[505,518,521,525,528],{"class":519,"line":520},"line",1,[505,522,524],{"class":523},"su5hD","#[",[505,526,507],{"class":527},"s_hVV",[505,529,531],{"class":530},"sP7_E","(\n",[505,533,535,539,542,545,549,553],{"class":519,"line":534},2,[505,536,538],{"class":537},"sbsja","    string",[505,540,541],{"class":530}," $",[505,543,544],{"class":523},"description ",[505,546,548],{"class":547},"smGrS","=",[505,550,552],{"class":551},"sjJ54"," ''",[505,554,555],{"class":530},",\n",[505,557,559,562,565,567,570,572,576],{"class":519,"line":558},3,[505,560,561],{"class":547},"    ?",[505,563,564],{"class":537},"string",[505,566,541],{"class":530},[505,568,569],{"class":523},"publishedAt ",[505,571,548],{"class":547},[505,573,575],{"class":574},"s39Yj"," null",[505,577,555],{"class":530},[505,579,581,583,585,587,590,592,594],{"class":519,"line":580},4,[505,582,561],{"class":547},[505,584,564],{"class":537},[505,586,541],{"class":530},[505,588,589],{"class":523},"deprecatedAt ",[505,591,548],{"class":547},[505,593,575],{"class":574},[505,595,555],{"class":530},[505,597,599,601,603,605,608,610,612],{"class":519,"line":598},5,[505,600,561],{"class":547},[505,602,564],{"class":537},[505,604,541],{"class":530},[505,606,607],{"class":523},"sunsetAt ",[505,609,548],{"class":547},[505,611,575],{"class":574},[505,613,555],{"class":530},[505,615,617],{"class":519,"line":616},6,[505,618,619],{"class":523},")]\n",[305,621,622,623,626],{},"On a case of the enum. Days are ",[308,624,625],{},"Y-m-d",".",[628,629,630,641,648,658],"field-group",{},[631,632,634],"field",{"name":633,"type":564},"description",[305,635,636,637,640],{},"Heads the revision in the changelog and the ",[308,638,639],{},"$comment"," of the export.",[631,642,645],{"name":643,"type":644},"publishedAt","string|null",[305,646,647],{},"Shown in the changelog and the export.",[631,649,651],{"name":650,"type":644},"deprecatedAt",[305,652,653,654,657],{},"Sends ",[308,655,656],{},"Deprecation: @\u003Cunix time>"," (RFC 9745) on every response in this revision.",[631,659,661],{"name":660,"type":644},"sunsetAt",[305,662,653,663,666],{},[308,664,665],{},"Sunset: \u003CHTTP date>"," on every response in this revision.",[305,668,669,672,673,676,677,679],{},[308,670,671],{},"Meta::isDeprecated(DateTimeInterface $now)"," and ",[308,674,675],{},"Meta::isSunset(DateTimeInterface $now)"," tell whether the day is\nreached. ",[308,678,498],{}," never changes behaviour.",[681,682,683],"style",{},"html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s_hVV, html code.shiki .s_hVV{--shiki-light:#90A4AE;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":514,"searchDepth":558,"depth":558,"links":685},[686,687],{"id":326,"depth":534,"text":327},{"id":502,"depth":534,"text":688},"#Meta","The methods IsRevision gives your enum, and the","md",{},true,"---\ntitle: Revision methods\ndescription: The methods IsRevision gives your enum, and the #[Meta] attribute.\n---\n\n`Ark4ne\\ApiRevisions\\Revisions\\Revision` is the interface of your enum; the trait\n`Ark4ne\\ApiRevisions\\Revisions\\IsRevision` implements it, except `order()`. Cases are compared by their place in\n`order()`, never by declaration order.\n\n## Methods\n\n| Method | Returns |\n| --- | --- |\n| `static order(): array` | every case, oldest first; the last is the head (written by you) |\n| `isBefore(Revision $other): bool` | strictly older than `$other` |\n| `isAfter(Revision $other): bool` | strictly newer than `$other` |\n| `isAtMost(Revision $other): bool` | `$other` or older |\n| `isAtLeast(Revision $other): bool` | `$other` or newer |\n| `previous(): ?static` | the previous case in `order()`, `null` for the oldest |\n| `next(): ?static` | the next case in `order()`, `null` for the head |\n| `static latest(): static` | the head |\n| `static oldest(): static` | the oldest revision |\n| `static current(): static` | the revision of the running request, or of the innermost `using()` |\n| `static using(Revision $revision, Closure $callback): mixed` | runs the callback with `$revision` current, returns what it returns |\n| `meta(): Meta` | the case's `#[Meta]`, an empty one when none |\n\n## #[Meta]\n\n```php\n#[Meta(\n    string $description = '',\n    ?string $publishedAt = null,\n    ?string $deprecatedAt = null,\n    ?string $sunsetAt = null,\n)]\n```\n\nOn a case of the enum. Days are `Y-m-d`.\n\n::field-group\n:::field{name=\"description\" type=\"string\"}\nHeads the revision in the changelog and the `$comment` of the export.\n:::\n:::field{name=\"publishedAt\" type=\"string|null\"}\nShown in the changelog and the export.\n:::\n:::field{name=\"deprecatedAt\" type=\"string|null\"}\nSends `Deprecation: @\u003Cunix time>` (RFC 9745) on every response in this revision.\n:::\n:::field{name=\"sunsetAt\" type=\"string|null\"}\nSends `Sunset: \u003CHTTP date>` on every response in this revision.\n:::\n::\n\n`Meta::isDeprecated(DateTimeInterface $now)` and `Meta::isSunset(DateTimeInterface $now)` tell whether the day is\nreached. `#[Meta]` never changes behaviour.\n",{"title":272,"description":689},"mGS3aC0nEotPKInQtR5AMcZNz0vqH4YmY4JgW64a9w8",[697,699],{"title":268,"path":269,"stem":270,"description":698,"children":-1},"Every helper of Schema and every descriptor modifier, with its signature.",{"title":276,"path":277,"stem":278,"description":700,"children":-1},"Every Artisan command of the package and its options.",1795438905851]