Implementing interface in php