Skip to content

Commit 27a5ab2

Browse files
committed
Split out CodegenMethod to a separate page
1 parent aa18b86 commit 27a5ab2

4 files changed

Lines changed: 16 additions & 24 deletions

File tree

docs/_data/nav_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
items:
1616
- id: classes-codegen-file
1717
- id: classes-codegen-function
18-
- id: classes-other
18+
- id: classes-codegen-method
1919

2020
# n title:, 1 items: per title:, n id: per items:
2121
# - title: A

docs/_docs/classes/codegen-function.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@ To make a function memoized (adding the `<<__Memoize>>` attribute), call
3434
`->setIsMemoized(bool $value = true)`; for other attributes, call
3535
`->setUserAttribute(string $name, ?string $value)`.
3636

37-
CodegenMethod
38-
-------------
39-
40-
Methods are created with `$factory->codegenMethod('methodName')`, and have some
41-
additional features over functions:
42-
43-
- `->setIsOverride(bool $value = true)`: add the `<<__Override>>` attribute, which
44-
requires that the method is declared in a parent class
45-
- `->setIsFinal(bool $value = true)`: mark the method as final
46-
- `->setIsAbstract(bool $value = true)`: mark the method as abstract
47-
- `->setIsStatic(bool $value = true)`: mark the method as static
48-
4937
FIXMEs
5038
------
5139

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
docid: classes-codegen-method
3+
title: CodegenMethod
4+
layout: docs
5+
permalink: /docs/classes/CodegenMethod/
6+
---
7+
8+
Methods are created with `$factory->codegenMethod('methodName')`, and have some
9+
additional features compared to `CodegenFunction`:
10+
11+
- `->setIsOverride(bool $value = true)`: add the `<<__Override>>` attribute, which
12+
requires that the method is declared in a parent class
13+
- `->setIsFinal(bool $value = true)`: mark the method as final
14+
- `->setIsAbstract(bool $value = true)`: mark the method as abstract
15+
- `->setIsStatic(bool $value = true)`: mark the method as static

docs/_docs/classes/other.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)