1<?php
2
3namespace ComboStrap;
4
5use Throwable;
6
7class ExceptionNotEquals extends ExceptionCompile
8{
9
10    /**
11     * @var string|array
12     */
13    private $left;
14    /**
15     * @var string|array
16     */
17    private $right;
18
19    public function __construct($message = "", $canonical = "", $code = 0, Throwable $previous = null)
20    {
21        parent::__construct($message, $canonical, $code, $previous);
22    }
23
24    public static function create(string $message, $left, $right): ExceptionNotEquals
25    {
26        return (new ExceptionNotEquals($message))
27            ->setLeft($left)
28            ->setRight($right);
29    }
30
31    private function setLeft($left): ExceptionNotEquals
32    {
33        $this->left = $left;
34        return $this;
35    }
36
37    private function setRight($right): ExceptionNotEquals
38    {
39        $this->right = $right;
40        return $this;
41    }
42
43    /**
44     * @return array|string
45     */
46    public function getLeft()
47    {
48        return $this->left;
49    }
50
51    /**
52     * @return array|string
53     */
54    public function getRight()
55    {
56        return $this->right;
57    }
58
59
60
61}
62