diff --git a/src/Result.php b/src/Result.php index 3c90d9c..954aec5 100644 --- a/src/Result.php +++ b/src/Result.php @@ -73,15 +73,7 @@ class Result */ public function __construct($code, $identity, array $messages = array()) { - $code = (int) $code; - - if ($code < self::FAILURE_UNCATEGORIZED) { - $code = self::FAILURE; - } elseif ($code > self::SUCCESS) { - $code = 1; - } - - $this->code = $code; + $this->code = (int) $code; $this->identity = $identity; $this->messages = $messages; }