2023-12-12 20:25:41 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace urlManipulator;
|
2023-12-18 15:08:52 +00:00
|
|
|
// 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();
|
2023-12-18 15:08:52 +00:00
|
|
|
abstract protected function getNewParam(array $existingParams, string $originalUrl);
|
2023-12-12 20:25:41 +00:00
|
|
|
}
|
|
|
|
|