68eb9a77014f38e13e6eeb72a9df53b6fa4b73c6
[m6w6/ascertain] / src / Validator.php
1 <?php
2
3 namespace ascertain;
4
5 /**
6 * Use this trait in an \ascertain\Testable class
7 */
8 trait Validator {
9 /**
10 * @param string $e Exception class name
11 * @return \ascertain\Assert
12 */
13 function assert($e = "\\InvalidArgumentException") {
14 return new Assert($this, $e);
15 }
16 }