public static function getVisibility(Node\Stmt\Property $property): int
    {
        if ($property->isPrivate()) {
            return VisibilityInterface::PRIVATE;
        }
        if ($property->isProtected()) {
            return VisibilityInterface::PROTECTED;
        }
        return VisibilityInterface::PUBLIC;
    }
public static function getVisibility(Node\Stmt\Property $property): int
    {
        if ($property->isPrivate()) {
            return VisibilityInterface::PRIVATE;
        }
        if ($property->isProtected()) {
            return VisibilityInterface::PROTECTED;
        }
        return VisibilityInterface::PUBLIC;
    }
public static function getVisibility ( Node \ Stmt \ Property $ property ) : int { if ( $ property -> isPrivate ( ) ) { return VisibilityInterface :: PRIVATE ; } if ( $ property -> isProtected ( ) ) { return VisibilityInterface :: PROTECTED ; } return VisibilityInterface :: PUBLIC ; }
Get the visibility of a property.

@param Node\Stmt\Property $property The property.

@return int The visibility property.

@see VisibilityInterface For different constants of visibility.
Get the visibility of a property .