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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
432 B
PHP
Raw Normal View History

2019-07-09 21:43:18 +02:00
<?php
namespace Engelsystem\Test\Unit\Http\Validation\Stub;
use Engelsystem\Controllers\BaseController;
use Engelsystem\Http\Request;
class ValidatesRequestImplementation extends BaseController
{
public function validateData(Request $request, array $rules): array
{
return $this->validate($request, $rules);
}
public function hasValidator(): bool
{
return !is_null($this->validator);
}
}