public function setStatusCode($code)
    {
        static $sg = null;

        if (is_null($sg)) {
            $sg = new StatusGenerator();
        }

        $status = $sg->generate($code);

        if ($status !== false) {
            $this->append($status);
        }

        return $this;
    }
public function setStatusCode($code)
    {
        static $sg = null;

        if (is_null($sg)) {
            $sg = new StatusGenerator();
        }

        $status = $sg->generate($code);

        if ($status !== false) {
            $this->append($status);
        }

        return $this;
    }
public function setStatusCode ( $ code ) { static $ sg = null ; if ( is_null ( $ sg ) ) { $ sg = new StatusGenerator ( ) ; } $ status = $ sg -> generate ( $ code ) ; if ( $ status !== false ) { $ this -> append ( $ status ) ; } return $ this ; }
Sets status code

@param integer $code
@return \Krystal\Http\HeaderBag
Sets status code