first
This commit is contained in:
commit
5aa7d034f7
3292 changed files with 465160 additions and 0 deletions
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/DataAwareRule.php
vendored
Executable file
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/DataAwareRule.php
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface DataAwareRule
|
||||
{
|
||||
/**
|
||||
* Set the data under validation.
|
||||
*
|
||||
* @param array $data
|
||||
* @return $this
|
||||
*/
|
||||
public function setData($data);
|
||||
}
|
||||
46
data/web/inc/lib/vendor/illuminate/contracts/Validation/Factory.php
vendored
Executable file
46
data/web/inc/lib/vendor/illuminate/contracts/Validation/Factory.php
vendored
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface Factory
|
||||
{
|
||||
/**
|
||||
* Create a new Validator instance.
|
||||
*
|
||||
* @param array $data
|
||||
* @param array $rules
|
||||
* @param array $messages
|
||||
* @param array $customAttributes
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
public function make(array $data, array $rules, array $messages = [], array $customAttributes = []);
|
||||
|
||||
/**
|
||||
* Register a custom validator extension.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $extension
|
||||
* @param string|null $message
|
||||
* @return void
|
||||
*/
|
||||
public function extend($rule, $extension, $message = null);
|
||||
|
||||
/**
|
||||
* Register a custom implicit validator extension.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $extension
|
||||
* @param string|null $message
|
||||
* @return void
|
||||
*/
|
||||
public function extendImplicit($rule, $extension, $message = null);
|
||||
|
||||
/**
|
||||
* Register a custom implicit validator message replacer.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $replacer
|
||||
* @return void
|
||||
*/
|
||||
public function replacer($rule, $replacer);
|
||||
}
|
||||
8
data/web/inc/lib/vendor/illuminate/contracts/Validation/ImplicitRule.php
vendored
Executable file
8
data/web/inc/lib/vendor/illuminate/contracts/Validation/ImplicitRule.php
vendored
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface ImplicitRule extends Rule
|
||||
{
|
||||
//
|
||||
}
|
||||
22
data/web/inc/lib/vendor/illuminate/contracts/Validation/Rule.php
vendored
Executable file
22
data/web/inc/lib/vendor/illuminate/contracts/Validation/Rule.php
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface Rule
|
||||
{
|
||||
/**
|
||||
* Determine if the validation rule passes.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
*/
|
||||
public function passes($attribute, $value);
|
||||
|
||||
/**
|
||||
* Get the validation error message.
|
||||
*
|
||||
* @return string|array
|
||||
*/
|
||||
public function message();
|
||||
}
|
||||
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/UncompromisedVerifier.php
vendored
Executable file
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/UncompromisedVerifier.php
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface UncompromisedVerifier
|
||||
{
|
||||
/**
|
||||
* Verify that the given data has not been compromised in data leaks.
|
||||
*
|
||||
* @param array $data
|
||||
* @return bool
|
||||
*/
|
||||
public function verify($data);
|
||||
}
|
||||
13
data/web/inc/lib/vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Executable file
13
data/web/inc/lib/vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface ValidatesWhenResolved
|
||||
{
|
||||
/**
|
||||
* Validate the given class instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function validateResolved();
|
||||
}
|
||||
65
data/web/inc/lib/vendor/illuminate/contracts/Validation/Validator.php
vendored
Executable file
65
data/web/inc/lib/vendor/illuminate/contracts/Validation/Validator.php
vendored
Executable file
|
|
@ -0,0 +1,65 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Illuminate\Contracts\Support\MessageProvider;
|
||||
|
||||
interface Validator extends MessageProvider
|
||||
{
|
||||
/**
|
||||
* Run the validator's rules against its data.
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
public function validate();
|
||||
|
||||
/**
|
||||
* Get the attributes and values that were validated.
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
public function validated();
|
||||
|
||||
/**
|
||||
* Determine if the data fails the validation rules.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function fails();
|
||||
|
||||
/**
|
||||
* Get the failed validation rules.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function failed();
|
||||
|
||||
/**
|
||||
* Add conditions to a given field based on a Closure.
|
||||
*
|
||||
* @param string|array $attribute
|
||||
* @param string|array $rules
|
||||
* @param callable $callback
|
||||
* @return $this
|
||||
*/
|
||||
public function sometimes($attribute, $rules, callable $callback);
|
||||
|
||||
/**
|
||||
* Add an after validation callback.
|
||||
*
|
||||
* @param callable|string $callback
|
||||
* @return $this
|
||||
*/
|
||||
public function after($callback);
|
||||
|
||||
/**
|
||||
* Get all of the validation error messages.
|
||||
*
|
||||
* @return \Illuminate\Support\MessageBag
|
||||
*/
|
||||
public function errors();
|
||||
}
|
||||
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/ValidatorAwareRule.php
vendored
Executable file
14
data/web/inc/lib/vendor/illuminate/contracts/Validation/ValidatorAwareRule.php
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface ValidatorAwareRule
|
||||
{
|
||||
/**
|
||||
* Set the current validator.
|
||||
*
|
||||
* @param \Illuminate\Validation\Validator $validator
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidator($validator);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue