original_string: public function setPadType($padType)
      {
          if (!\in_array($padType, [STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH], true)) {
              throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
          }
  
          $this->padType = $padType;
  
          return $this;
      }
code: public function setPadType($padType)
      {
          if (!\in_array($padType, [STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH], true)) {
              throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
          }
  
          $this->padType = $padType;
  
          return $this;
      }
code_tokens: public function setPadType ( $ padType ) { if ( ! \ in_array ( $ padType , [ STR_PAD_LEFT , STR_PAD_RIGHT , STR_PAD_BOTH ] , true ) ) { throw new InvalidArgumentException ( 'Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).' ) ; } $ this -> padType = $ padType ; return $ this ; }
docstring: Sets cell padding type.
  
  @param int $padType STR_PAD_*
  
  @return $this
docstring_tokens: Sets cell padding type .