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.
|
<?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];
|
|
}
|
|
}
|