engelsystem/tests/Unit/Http/Validation/Stub/ValidatesRequestImplementat...

24 lines
498 B
PHP

<?php
namespace Engelsystem\Test\Unit\Http\Validation\Stub;
use Engelsystem\Controllers\BaseController;
use Engelsystem\Http\Request;
class ValidatesRequestImplementation extends BaseController
{
/**
* @param array $rules
* @return array
*/
public function validateData(Request $request, array $rules): array
{
return $this->validate($request, $rules);
}
public function hasValidator(): bool
{
return !is_null($this->validator);
}
}