| 1 | <?php |
||
| 24 | abstract class AbstractRequest { |
||
| 25 | |||
| 26 | use ArrayFieldsTrait; |
||
| 27 | use StringCodeTrait; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor. |
||
| 31 | */ |
||
| 32 | public function __construct() { |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get the resource path. |
||
| 38 | * |
||
| 39 | * @return string Returns the resource path. |
||
| 40 | */ |
||
| 41 | abstract public function getResourcePath(): string; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Implode a resource path. |
||
| 45 | * |
||
| 46 | * @param string $resourcePath The resource path. |
||
| 47 | * @return string Returns the resource path. |
||
| 48 | */ |
||
| 49 | protected function implodeResourcePath(string $resourcePath): string { |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Sprintf a resource path. |
||
| 63 | * |
||
| 64 | * @param string $resourcePath The resource path. |
||
| 65 | * @return string Returns the resource path. |
||
| 66 | */ |
||
| 67 | protected function sprintfResourcesPath(string $resourcePath): string { |
||
| 75 | } |