Method |
Description |
|
collectPrivateField ( PHPMD\Node\ASTNode $declaration ) : void |
This method extracts all variable declarators from the given field
declaration and stores them in the $_fields property. |
|
collectPrivateFields ( PHPMD\Node\ClassNode $class ) : void |
This method collects all private fields in the given class and stores
them in the $_fields property. |
|
collectUnusedPrivateFields ( PHPMD\Node\ClassNode $class ) : PHPMD\AbstractNode[] |
This method collects all private fields that aren't used by any class
method. |
|
removeUsedField ( PHPMD\Node\ASTNode $postfix ) : void |
This method removes the field from the $_fields property that is
accessed through the given property postfix node. |
|
removeUsedFields ( PHPMD\Node\ClassNode $class ) : void |
This method extracts all property postfix nodes from the given class and
removes all fields from the $_fields property that are accessed by
one of the postfix nodes. |
|