<?php

namespace KupShop\SystemInspectionBundle\InspectionWriters\MessageTypes;

use KupShop\SystemInspectionBundle\InspectionWriters\InspectionWriterVisitor;

class SimpleMessage extends InspectionMessage
{
    protected $message;
    protected $data;
    protected $severity;
    protected $security;

    public function __construct($message, $data = null, $severity = null, $security = null)
    {
        $this->message = $message;
        $this->data = $data;
        $this->severity = $severity;
        $this->security = $security;
    }

    public function getMessage()
    {
        return $this->message;
    }

    /**
     * @return mixed|null
     */
    public function getData()
    {
        return $this->data;
    }

    public function getSeverity()
    {
        return $this->severity;
    }

    public function getSecurity()
    {
        return $this->security;
    }

    public function accept(InspectionWriterVisitor $visitor)
    {
        $visitor->visitSimple($this);
    }
}
