| 1 | <?php |
||
| 23 | class SettingsController extends Controller { |
||
| 24 | /** @var IConfig */ |
||
| 25 | private $config; |
||
| 26 | /** @var string */ |
||
| 27 | private $userId; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $AppName |
||
| 31 | * @param IRequest $request |
||
| 32 | * @param IConfig $config |
||
| 33 | * @param string $UserId |
||
| 34 | */ |
||
| 35 | 3 | public function __construct($AppName, |
|
| 36 | IRequest $request, |
||
| 37 | IConfig $config, |
||
| 38 | $UserId){ |
||
| 39 | 3 | parent::__construct($AppName, $request); |
|
| 40 | 3 | $this->config = $config; |
|
| 41 | 3 | $this->userId = $UserId; |
|
| 42 | 3 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @NoAdminRequired |
||
| 46 | * |
||
| 47 | * @param string $key |
||
| 48 | * @param string $value |
||
| 49 | * @return JSONResponse |
||
| 50 | */ |
||
| 51 | 3 | public function set($key = '', $value = '') { |
|
| 71 | } |
||
| 72 |
This check marks parameter names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.