Type hinted method generation for phpspec