src/Factory/ResponseBase.php
public function setStatus($sStatus)
    {
        if (!$this->bIsLocked) {

            $aStatuses = $this->getStatuses();
            if (!in_array($sStatus, $aStatuses)) {
                throw new ResponseException('"' . $sStatus . '" is an invalid response status.', 1);
            }

            $this->sStatus = $sStatus;
        }

        return $this;
    }
public function setStatus($sStatus)
    {
        if (!$this->bIsLocked) {

            $aStatuses = $this->getStatuses();
            if (!in_array($sStatus, $aStatuses)) {
                throw new ResponseException('"' . $sStatus . '" is an invalid response status.', 1);
            }

            $this->sStatus = $sStatus;
        }

        return $this;
    }
public function setStatus ( $ sStatus ) { if ( ! $ this -> bIsLocked ) { $ aStatuses = $ this -> getStatuses ( ) ; if ( ! in_array ( $ sStatus , $ aStatuses ) ) { throw new ResponseException ( '"' . $ sStatus . '" is an invalid response status.' , 1 ) ; } $ this -> sStatus = $ sStatus ; } return $ this ; }
Returns the current status of the response

@param string $sStatus The status to set

@throws ResponseException
@return string
Returns the current status of the response