original_string: public function set_type($type) {
          if (!in_array($type, [self::TYPE_DEFAULT, self::TYPE_LINE])) {
              throw new coding_exception('Invalid serie type.');
          }
          $this->type = $type;
      }
code: public function set_type($type) {
          if (!in_array($type, [self::TYPE_DEFAULT, self::TYPE_LINE])) {
              throw new coding_exception('Invalid serie type.');
          }
          $this->type = $type;
      }
code_tokens: public function set_type ( $ type ) { if ( ! in_array ( $ type , [ self :: TYPE_DEFAULT , self :: TYPE_LINE ] ) ) { throw new coding_exception ( 'Invalid serie type.' ) ; } $ this -> type = $ type ; }
docstring: Set the type of the series.
  
  @param string $type Constant value from self::TYPE_*.
docstring_tokens: Set the type of the series .