1 <?php
2 /**
3 * Created by PhpStorm.
4
5 * Date: 21/08/2015
6 * Time: 07:58.
7 */
8 namespace Skimia\ApiFusion\Domain\Contracts;
9
10 interface InputValidatorContract
11 {
12 /**
13 * Static factory.
14 *
15 * @param array $inputs
16 * @return InputValidatorContract
17 */
18 public static function make($inputs = null);
19
20 /**
21 * Set the scope.
22 *
23 * @param string|array $scope
24 * @return InputValidatorContract
25 */
26 public function scope($scope);
27
28 /**
29 * Binds a rule parameter.
30 *
31 * @return InputValidatorContract
32 */
33 public function bind();
34
35 /**
36 * Get the inputs. Especially useful for getting
37 * the filtered input values.
38 *
39 * @return array
40 */
41 public function getInputs();
42
43 /**
44 * Test if the input data passes validation.
45 * @return bool
46 */
47 public function passes();
48
49 /**
50 * Test if the input data fails validation.
51 * @return bool
52 */
53 public function fails();
54 }
55