for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Routing\Messages;
use Valkyrja\Http\Request;
/**
* Trait ParsedBodyParamsMessage.
* @author Melech Mizrachi
trait ParsedBodyParamsMessage
{
use Message;
* @inheritDoc
protected static function getOnlyParamsFromRequest(Request $request, int|string ...$values): array
return $request->onlyParsedBody($values);
}
protected static function getExceptParamsFromRequest(Request $request, int|string ...$values): array
return $request->exceptParsedBody($values);