Setting base for php class