forked from hhvm/hack-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodegenMethodTestCase.codegen
More file actions
41 lines (34 loc) · 952 Bytes
/
CodegenMethodTestCase.codegen
File metadata and controls
41 lines (34 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@generated
!@#$%codegentest:testAbstractProtectedAndParams
abstract protected function getSchema(string $name);
!@#$%codegentest:testAsync
public async function genFoo() {
}
!@#$%codegentest:testConstructor
public function __construct(string $name) {
$this->name = $name;
}
!@#$%codegentest:testDocBlockCommentsWrap
/**
* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* (Generated from EntTestSchema::getFields()['name'])
*/
public function getName(): string {
return $this->name;
}
!@#$%codegentest:testManualSection
public function genProprietorName(): string {
/* BEGIN MANUAL SECTION EntBlindPig::genProprietorName */
// insert your code here
/* END MANUAL SECTION */
}
!@#$%codegentest:testPrivateAndStaticWithEmptyBody
private static function doNothing() {
}
!@#$%codegentest:testSimpleGetter
/**
* Return the name of the user.
*/
public function getName(): string {
return $this->name;
}