php class vertex