PHP Class App\Services\Validation\AbstractLaravelValidator

Inheritance: implements App\Services\Validation\ValidableInterface
显示文件 Open project: ngmy/webloyer

Protected Properties

Property Type Description
$data
$errors
$rules
$validator

Public Methods

Method Description
__construct ( Illuminate\Validation\Factory $validator ) : void Create a new validator instance.
errors ( ) : array Return validation errors.
passes ( ) : boolean Test whether passes validation.
with ( array $data ) : App\Services\Validation\ValidableInterface Add data to validation.

Protected Methods

Method Description
rules ( ) : array Return validation rules.

Method Details

__construct() public method

Create a new validator instance.
public __construct ( Illuminate\Validation\Factory $validator ) : void
$validator Illuminate\Validation\Factory
return void

errors() public method

Return validation errors.
public errors ( ) : array
return array

passes() public method

Test whether passes validation.
public passes ( ) : boolean
return boolean

rules() protected method

Return validation rules.
protected rules ( ) : array
return array

with() public method

Add data to validation.
public with ( array $data ) : App\Services\Validation\ValidableInterface
$data array
return App\Services\Validation\ValidableInterface $this

Property Details

$data protected_oe property

protected $data

$errors protected_oe property

protected $errors

$rules protected_oe property

protected $rules

$validator protected_oe property

protected $validator