The question is, do you really want it to be a static variable? (If it's static, then if you change its value in any instance of that class, you'll be changing it in all instances.) If not, then you would not declare it as static, and use the $this object withing the class's methods:
class Foo
{
private $bar = 0;
public getBar()
{
return $this->bar;
}
public setBar($val)
{
$this->bar = $val;
}
}
$foo = new Foo();
$foo->setBar(5);
echo $foo->getBar();