Add constructor-like methods to patch classes

Signed-off-by: Ross Allan <rallanpcl@gmail.com>