1: <?php
2:
3: /**
4: * Copyright 2015, Eduardo Trujillo
5: *
6: * For the full copyright and license information, please view the LICENSE
7: * file that was distributed with this source code.
8: *
9: * This file is part of the Nucleus package
10: */
11:
12: namespace Chromabits\Nucleus\Meditation\Interfaces;
13:
14: /**
15: * Interface CheckResultInterface.
16: *
17: * @author Eduardo Trujillo <ed@chromabits.com>
18: * @package Chromabits\Nucleus\Meditation\Interfaces
19: */
20: interface CheckResultInterface
21: {
22: /**
23: * Get missing fields.
24: *
25: * @return string[]
26: */
27: public function getMissing();
28:
29: /**
30: * Get failed constrains for every field.
31: *
32: * @return array[]
33: */
34: public function getFailed();
35:
36: /**
37: * Return true if the check passed.
38: *
39: * @return bool
40: */
41: public function passed();
42:
43: /**
44: * Return false if the check failed.
45: *
46: * @return bool
47: */
48: public function failed();
49: }
50: