Beispiel #1
0
 /**
  * This method removes the field from the <b>$_fields</b> property that is
  * accessed through the given property postfix node.
  *
  * @param PHP_PMD_Node_ASTNode $postfix The context postfix node.
  *
  * @return void
  */
 private function _removeUsedField(PHP_PMD_Node_ASTNode $postfix)
 {
     if ($postfix->getParent()->isStatic()) {
         $image = '';
         $child = $postfix->getFirstChildOfType('Variable');
     } else {
         $image = '$';
         $child = $postfix->getFirstChildOfType('Identifier');
     }
     if ($this->isValidPropertyNode($child)) {
         unset($this->_fields[$image . $child->getImage()]);
     }
 }