Following OOP design prenciples in PHP