private function setCode($code)
    {
        if (!\is_numeric($code)) {
            throw InvalidStatusCodeException::notNumeric($code);
        }
        $code = (int) $code;

        if ($code < 100) {
            throw InvalidStatusCodeException::notGreaterOrEqualTo100($code);
        }
        $this->code = $code;
    }
private function setCode($code)
    {
        if (!\is_numeric($code)) {
            throw InvalidStatusCodeException::notNumeric($code);
        }
        $code = (int) $code;

        if ($code < 100) {
            throw InvalidStatusCodeException::notGreaterOrEqualTo100($code);
        }
        $this->code = $code;
    }
private function setCode ( $ code ) { if ( ! \ is_numeric ( $ code ) ) { throw InvalidStatusCodeException :: notNumeric ( $ code ) ; } $ code = ( int ) $ code ; if ( $ code < 100 ) { throw InvalidStatusCodeException :: notGreaterOrEqualTo100 ( $ code ) ; } $ this -> code = $ code ; }
Set the code. Used in constructor to ensure the code meets the
requirements for a status code.

@param int $code The status code
@throws InvalidStatusCodeException If the status code is invalid
Set the code . Used in constructor to ensure the code meets the requirements for a status code .