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

isStatic() public method

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

Usage Example

 public function visitProperty(Property $node)
 {
     $prop = $node->props[0];
     $p = new PhpProperty($prop->name);
     $p->setStatic($node->isStatic());
     $p->setVisibility($this->getVisibility($node));
     $this->parseValue($p, $prop);
     $this->parseMemberDocblock($p, $node->getDocComment());
     $this->struct->setProperty($p);
 }
All Usage Examples Of PhpParser\Node\Stmt\Property::isStatic