add public property
optimize php class
refactor  api