refactor  interface
update php method
hotfix  unit tests