mirror of
https://github.com/itflow-org/itflow
synced 2026-03-08 06:44:51 +00:00
Reintroduce Webklex IMAP for ticket processing as PHP-IMAP is no longer being developed. This is optional for now and considered beta can be found in cron/ticket_email_parser.php
This commit is contained in:
17
plugins/vendor/illuminate/contracts/Validation/CompilableRules.php
vendored
Normal file
17
plugins/vendor/illuminate/contracts/Validation/CompilableRules.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface CompilableRules
|
||||
{
|
||||
/**
|
||||
* Compile the object into usable rules.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param mixed $data
|
||||
* @param mixed $context
|
||||
* @return \stdClass
|
||||
*/
|
||||
public function compile($attribute, $value, $data = null, $context = null);
|
||||
}
|
||||
14
plugins/vendor/illuminate/contracts/Validation/DataAwareRule.php
vendored
Normal file
14
plugins/vendor/illuminate/contracts/Validation/DataAwareRule.php
vendored
Normal 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(array $data);
|
||||
}
|
||||
46
plugins/vendor/illuminate/contracts/Validation/Factory.php
vendored
Normal file
46
plugins/vendor/illuminate/contracts/Validation/Factory.php
vendored
Normal 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 $attributes
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
public function make(array $data, array $rules, array $messages = [], array $attributes = []);
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
11
plugins/vendor/illuminate/contracts/Validation/ImplicitRule.php
vendored
Normal file
11
plugins/vendor/illuminate/contracts/Validation/ImplicitRule.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
interface ImplicitRule extends Rule
|
||||
{
|
||||
//
|
||||
}
|
||||
21
plugins/vendor/illuminate/contracts/Validation/InvokableRule.php
vendored
Normal file
21
plugins/vendor/illuminate/contracts/Validation/InvokableRule.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
interface InvokableRule
|
||||
{
|
||||
/**
|
||||
* Run the validation rule.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail
|
||||
* @return void
|
||||
*/
|
||||
public function __invoke(string $attribute, mixed $value, Closure $fail);
|
||||
}
|
||||
25
plugins/vendor/illuminate/contracts/Validation/Rule.php
vendored
Normal file
25
plugins/vendor/illuminate/contracts/Validation/Rule.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
/**
|
||||
* @deprecated see ValidationRule
|
||||
*/
|
||||
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
plugins/vendor/illuminate/contracts/Validation/UncompromisedVerifier.php
vendored
Normal file
14
plugins/vendor/illuminate/contracts/Validation/UncompromisedVerifier.php
vendored
Normal 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
plugins/vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Normal file
13
plugins/vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface ValidatesWhenResolved
|
||||
{
|
||||
/**
|
||||
* Validate the given class instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function validateResolved();
|
||||
}
|
||||
18
plugins/vendor/illuminate/contracts/Validation/ValidationRule.php
vendored
Normal file
18
plugins/vendor/illuminate/contracts/Validation/ValidationRule.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Closure;
|
||||
|
||||
interface ValidationRule
|
||||
{
|
||||
/**
|
||||
* Run the validation rule.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param mixed $value
|
||||
* @param \Closure(string, ?string=): \Illuminate\Translation\PotentiallyTranslatedString $fail
|
||||
* @return void
|
||||
*/
|
||||
public function validate(string $attribute, mixed $value, Closure $fail): void;
|
||||
}
|
||||
65
plugins/vendor/illuminate/contracts/Validation/Validator.php
vendored
Normal file
65
plugins/vendor/illuminate/contracts/Validation/Validator.php
vendored
Normal 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();
|
||||
}
|
||||
16
plugins/vendor/illuminate/contracts/Validation/ValidatorAwareRule.php
vendored
Normal file
16
plugins/vendor/illuminate/contracts/Validation/ValidatorAwareRule.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Illuminate\Validation\Validator;
|
||||
|
||||
interface ValidatorAwareRule
|
||||
{
|
||||
/**
|
||||
* Set the current validator.
|
||||
*
|
||||
* @param \Illuminate\Validation\Validator $validator
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidator(Validator $validator);
|
||||
}
|
||||
Reference in New Issue
Block a user