Replace 'var' visiblity keyword

`var` keyword is deprecated but kept around for compatibility reasons.
http://www.php.net/manual/en/language.oop5.visibility.php