public function violate($message)
    {
        if (!empty($this->messages)){
            $message = $this->messages[0];
        } else {
            $this->setMessage($message);
        }
    }
public function violate($message)
    {
        if (!empty($this->messages)){
            $message = $this->messages[0];
        } else {
            $this->setMessage($message);
        }
    }
public function violate ( $ message ) { if ( ! empty ( $ this -> messages ) ) { $ message = $ this -> messages [ 0 ] ; } else { $ this -> setMessage ( $ message ) ; } }
Notifies about constraint violation

@throws RuntimeException
@return void
Notifies about constraint violation