<?php

/**
 * Validator Decorator
 * 
 * @version DR1.7
 */
abstract class ValidatorDecorator extends Validator {



	protected $validator;



	/**
	 * Constructs a decorator for passed IValidator
	 * 
	 * @param IValidator
	 */
	public function __construct(IValidator $v) {
		$this->validator = $v;
	}



	/**
	 * Returns decorated validator result
	 * 
	 * @return boolean
	 */
	public function valid() {
		return $this->validator->valid();
	}



} // ValidatorDecorator

?>