/** * Create a new WebHookReceipt * * @param string $url The URL of the WebHook * @param string $parameter If provided, the post parameter to attach Json * @param Boolean $useBody If set to true, Json will be provided in the request body * * @return WebHookReceipt */ public static function create($url, $parameter, $useBody = false) { $hook = new WebHookReceipt(); return $hook->setUrl($url)->setParameter($parameter)->setUseBody($useBody); }