PhpParser\Node\Stmt\Property::isPrivate PHP Method

isPrivate() public method

public isPrivate ( )
    public function isPrivate()
    {
        return (bool) ($this->flags & Class_::MODIFIER_PRIVATE);
    }

Usage Example

 private function enterProperty(Property $node)
 {
     if ($node->isPrivate()) {
         foreach ($node->props as $property) {
             $this->privateAttributes[$property->name] = $node;
         }
     }
 }
All Usage Examples Of PhpParser\Node\Stmt\Property::isPrivate