Code Duplication    Length = 9-10 lines in 2 locations

src/Rules/Comparisons/BaseOneValueComparision.php 1 location

@@ 73-81 (lines=9) @@
70
     * @param string $messageTemplate
71
     * @param array  $messageParams
72
     */
73
    public function __construct($value, int $errorCode, string $messageTemplate, array $messageParams)
74
    {
75
        assert($this->checkEachValueConvertibleToString($messageParams));
76
77
        $this->value           = $value;
78
        $this->errorCode       = $errorCode;
79
        $this->messageTemplate = $messageTemplate;
80
        $this->messageParams   = $messageParams;
81
    }
82
83
    /**
84
     * @inheritdoc

src/Rules/Comparisons/BaseTwoValueComparision.php 1 location

@@ 81-90 (lines=10) @@
78
     * @param string $messageTemplate
79
     * @param array  $messageParams
80
     */
81
    public function __construct($lowerValue, $upperValue, int $errorCode, string $messageTemplate, array $messageParams)
82
    {
83
        assert($this->checkEachValueConvertibleToString($messageParams));
84
85
        $this->lowerValue      = $lowerValue;
86
        $this->upperValue      = $upperValue;
87
        $this->errorCode       = $errorCode;
88
        $this->messageTemplate = $messageTemplate;
89
        $this->messageParams   = $messageParams;
90
    }
91
92
    /**
93
     * @inheritdoc