public function addValidation($property, $validation, $options = array())
    {
        $validations = $this->getValidations($property);
        $validations[$validation] = $options;

        return $this;
    }
public function addValidation($property, $validation, $options = array())
    {
        $validations = $this->getValidations($property);
        $validations[$validation] = $options;

        return $this;
    }
public function addValidation ( $ property , $ validation , $ options = array ( ) ) { $ validations = $ this -> getValidations ( $ property ) ; $ validations [ $ validation ] = $ options ; return $ this ; }
Adds a property validation. It overwrites an existing validation with the same name.

@param string $property   The property to validate
@param string $validation The validation name
@param array  $options    Validation options
Adds a property validation . It overwrites an existing validation with the same name .