public function getMessage()
    {
        if ($this->success) {
            return null;
        }
        $message = $this->getPotentialMessage();
        $message->setVariables(
            array(
                'value' => $this->value
            )
        );

        return $message;
    }
public function getMessage()
    {
        if ($this->success) {
            return null;
        }
        $message = $this->getPotentialMessage();
        $message->setVariables(
            array(
                'value' => $this->value
            )
        );

        return $message;
    }
public function getMessage ( ) { if ( $ this -> success ) { return null ; } $ message = $ this -> getPotentialMessage ( ) ; $ message -> setVariables ( array ( 'value' => $ this -> value ) ) ; return $ message ; }
Retrieve the error message if validation failed

@return NULL|\Sirius\Validation\ErrorMessage
Retrieve the error message if validation failed