public function setStatus($status)
    {
        if (!in_array($status, static::$allowedStatuses))
        {
            throw new RuntimeException("Unknown transaction status given: {$status}");
        }

        $this->status = $status;

        return $this;
    }
public function setStatus($status)
    {
        if (!in_array($status, static::$allowedStatuses))
        {
            throw new RuntimeException("Unknown transaction status given: {$status}");
        }

        $this->status = $status;

        return $this;
    }
public function setStatus ( $ status ) { if ( ! in_array ( $ status , static :: $ allowedStatuses ) ) { throw new RuntimeException ( "Unknown transaction status given: {$status}" ) ; } $ this -> status = $ status ; return $ this ; }
Set payment transaction status

@param       string      $status     Payment transaction status

@return      self
Set payment transaction status