c117367974
I still struggle to find out how to deal with arguments like $userNameOrEmail. Should I trim() them in controllers, or in service? If I do it in service, shouldn't all of such validation belong in there?
7 lines
117 B
PHP
7 lines
117 B
PHP
<?php
|
|
namespace Szurubooru;
|
|
|
|
interface IValidatable
|
|
{
|
|
public function validate(\Szurubooru\Validator $validator);
|
|
}
|