Blame view

public/vendor/illuminate/contracts/Validation/Factory.php 1.17 KB
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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);
  }