You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Malio/app/Utils/Helper.php

19 lines
308 B
PHP

<?php
namespace App\Utils;
class Helper
{
public static function getParam($request, $queryString): ?string
{
return $request->getQueryParams()[$queryString] ?? null;
}
public static function getData($request, $name)
{
return $request->getParsedBody()[$name];
}
}