| 1 | <?php |
||
| 10 | class InlineCleanParamClient implements ClientInterface |
||
| 11 | { |
||
| 12 | use DirectiveClientCommons; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Clean-param |
||
| 16 | * @var string[][] |
||
| 17 | */ |
||
| 18 | protected $cleanParam = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * CleanParamClient constructor. |
||
| 22 | * |
||
| 23 | * @param string[][] $cleanParam |
||
| 24 | */ |
||
| 25 | public function __construct(array $cleanParam) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Export |
||
| 32 | * |
||
| 33 | * @return string[][] |
||
| 34 | */ |
||
| 35 | public function export() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Detect dynamic parameters |
||
| 42 | * |
||
| 43 | * @param string $uri |
||
| 44 | * @return string[] |
||
| 45 | */ |
||
| 46 | public function detect($uri) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Parse uri and return detected parameters |
||
| 53 | * |
||
| 54 | * @param string $uri |
||
| 55 | * @param array $pairs |
||
| 56 | * @return string[] |
||
| 57 | */ |
||
| 58 | protected function parse($uri, array $pairs) |
||
| 75 | } |
||
| 76 |