public function setFailureUrl($url) { if (substr($url, 0, 4) !== 'http') { $url = 'http://' . $url; } $this->failureUrl = $url; return $this; }