Adding php behavioral - template_method impl and test