summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/stdlib/src/Contract/Validator.php
blob: c03efab0f87d41e1b50b5a9182aa220551772364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace ipl\Stdlib\Contract;

interface Validator
{
    /**
     * Get whether the given value is valid
     *
     * @param mixed $value
     *
     * @return bool
     */
    public function isValid($value);

    /**
     * Get the validation error messages
     *
     * @return array
     */
    public function getMessages();
}