summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/stdlib/src/Contract/Validator.php
blob: e43821d34c19cb54c9807465057aa598f3ed95d8 (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<string>
     */
    public function getMessages();
}