UrlManipulator-php/server/urlManipulator/AbstractUrlManipulator.php

13 lines
435 B
PHP
Raw Permalink Normal View History

2023-12-12 20:25:41 +00:00
<?php
namespace urlManipulator;
// this is a custom AbstractUrlManipulator class that will manipulate a URL
2023-12-12 20:25:41 +00:00
abstract class AbstractUrlManipulator
{
abstract public function manipulateUrl(string $url);
abstract protected function addParamToUrl(string $url, string $param, string $value);
abstract protected function generateRandomValue();
abstract protected function getNewParam(array $existingParams, string $originalUrl);
2023-12-12 20:25:41 +00:00
}