original_string: public function set_status($status = self::STATUS_ACTIVE) {
          $this->statusactive = $status == static::STATUS_ACTIVE;
          $this->statussuspended = $status == static::STATUS_SUSPENDED;
          $this->statusnotcurrent = $status == static::STATUS_NOT_CURRENT;
  
          return $this;
      }
code: public function set_status($status = self::STATUS_ACTIVE) {
          $this->statusactive = $status == static::STATUS_ACTIVE;
          $this->statussuspended = $status == static::STATUS_SUSPENDED;
          $this->statusnotcurrent = $status == static::STATUS_NOT_CURRENT;
  
          return $this;
      }
code_tokens: public function set_status ( $ status = self :: STATUS_ACTIVE ) { $ this -> statusactive = $ status == static :: STATUS_ACTIVE ; $ this -> statussuspended = $ status == static :: STATUS_SUSPENDED ; $ this -> statusnotcurrent = $ status == static :: STATUS_NOT_CURRENT ; return $ this ; }
docstring: Status setter.
  
  @param int $status The user enrolment status representing one of this class' STATUS_* constants.
  @return status_field This class' instance. Useful for chaining.
docstring_tokens: Status setter .