protected function addValidationMethods(&$script)
    {
        $this->addValidationFailuresAttribute($script);
        $this->addGetValidationFailures($script);
        $this->addValidate($script);
        $this->addDoValidate($script);
    }
protected function addValidationMethods(&$script)
    {
        $this->addValidationFailuresAttribute($script);
        $this->addGetValidationFailures($script);
        $this->addValidate($script);
        $this->addDoValidate($script);
    }
protected function addValidationMethods ( & $ script ) { $ this -> addValidationFailuresAttribute ( $ script ) ; $ this -> addGetValidationFailures ( $ script ) ; $ this -> addValidate ( $ script ) ; $ this -> addDoValidate ( $ script ) ; }
Adds the methods related to the validation of the object.

@param string &$script The script will be modified in this method.
Adds the methods related to the validation of the object .