-
-
Notifications
You must be signed in to change notification settings - Fork 0
AddMissingMethodPhpDocRector
Felipe Sayão Lobato Abreu edited this page Mar 24, 2026
·
1 revision
- Full name:
\FastForward\DevTools\Rector\AddMissingMethodPhpDocRector - Parent class:
AbstractRector - This class is marked as final and can't be subclassed
- This class is a Final class
public getRuleDefinition(): \Symplify\RuleDocGenerator\ValueObject\RuleDefinitionpublic getNodeTypes(): arraypublic refactor(\PhpParser\Node $node): \PhpParser\NodeParameters:
| Parameter | Type | Description |
|---|---|---|
$node |
\PhpParser\Node |
private normalizeDocblockSpacing(string $docblock): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$docblock |
string |
private resolveTagGroup(string $line): string|nullParameters:
| Parameter | Type | Description |
|---|---|---|
$line |
string |
private shouldInsertBlankLineBetweenTagGroups(string $previousTagGroup, string $currentTagGroup): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$previousTagGroup |
string | |
$currentTagGroup |
string |
private getExistingParamVariables(\phpowermove\docblock\Docblock $docblock): string[]Parameters:
| Parameter | Type | Description |
|---|---|---|
$docblock |
\phpowermove\docblock\Docblock |
private shouldAddReturnTag(\PhpParser\Node\Stmt\ClassMethod $node, \phpowermove\docblock\Docblock $docblock): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$node |
\PhpParser\Node\Stmt\ClassMethod | |
$docblock |
\phpowermove\docblock\Docblock |
private getExistingThrowsTypes(\phpowermove\docblock\Docblock $docblock): string[]Parameters:
| Parameter | Type | Description |
|---|---|---|
$docblock |
\phpowermove\docblock\Docblock |
private resolveThrows(\PhpParser\Node\Stmt\ClassMethod $node): string[]Parameters:
| Parameter | Type | Description |
|---|---|---|
$node |
\PhpParser\Node\Stmt\ClassMethod |
private resolveNameToString(\PhpParser\Node\Name $name): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
\PhpParser\Node\Name |
private createDocblockFromReflection(\PhpParser\Node\Stmt\ClassMethod $node): \phpowermove\docblock\DocblockParameters:
| Parameter | Type | Description |
|---|---|---|
$node |
\PhpParser\Node\Stmt\ClassMethod |
private resolveTypeToString(string|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\ComplexType|null $type): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$type |
string|\PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\ComplexType|null |