public function undecorate($url) { if (empty($this->prefix)) { return $url; } if (strpos($url, $this->prefix) !== 0) { throw new InvalidBinaryPrefixException($url); } return trim(substr($url, strlen($this->prefix)), '/'); }