-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assert.php
30 lines (28 loc) · 893 Bytes
/
Assert.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* The Ztools_Assert component is a wrapper class for Zend_Validate.
* Purpose of this class is to validate given instances as the Zend_Validate
* class does, but the focus is more on asserting values than validating them.
* Ztools_Assert package includes many useful assertion classes to be added
* as assertions to Ztools_Assert object.
*
* @copyright 2010 Artur Gajewski
* @license http://framework.zend.com/license BSD License
* @version Release: @package_version@
* @link http://ztools.arturgajewski.com
* @since Class available since Release 1.2.2
*/
class Ztools_Assert extends Zend_Validate
{
/**
* Adds the given assertion class to the validation object.
*
* @param Class $class
* @return Ztools_Assert
*/
public function add($class)
{
$this->addValidator($class);
return $this;
}
}