Move custom libs to the source tree
This commit is contained in:
11
libs/SimpleValidator/Validators/Required.php
Normal file
11
libs/SimpleValidator/Validators/Required.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace SimpleValidator\Validators;
|
||||
|
||||
class Required extends Base
|
||||
{
|
||||
public function execute(array $data)
|
||||
{
|
||||
return $this->isFieldNotEmpty($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user