12 lines
435 B
PHP
12 lines
435 B
PHP
<?php
|
|
|
|
namespace urlManipulator;
|
|
// this is a custom AbstractUrlManipulator class that will manipulate a URL
|
|
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);
|
|
}
|
|
|