remove unused getters in php code
use attr_reader instead of getter methods in ruby