<?php

namespace CleantalkSP\SpbctWP;

class DoingItWrongError
{
    /**
     * @var string
     */
    public $function_name;
    /**
     * @var string
     */
    public $message;
    /**
     * @var string
     */
    public $version;
    /**
     * @var false|string
     */
    public $suppressed_by;
    /**
     * @var int
     */
    public $time;
    /**
     * @var string
     */
    public $source;

    /**
     * @return array
     */
    public function getArray()
    {
        return array(
            'function_name' => $this->function_name,
            'message'       => $this->message,
            'version'       => $this->version,
            'suppressed'    => $this->suppressed_by,
            'time'          => $this->time,
            'source'        => $this->source,
        );
    }
}
