original_string: public function setId($id)
      {
          // blacklist
          if (!(is_string($id) and filter_var($id, \FILTER_VALIDATE_INT) !== false)
          and !is_int($id)) {
              throw new \InvalidArgumentException( "Integer ID expected." );
          }
  
          $this->id = (int) trim($id);
  
          return $this;
      }
code: public function setId($id)
      {
          // blacklist
          if (!(is_string($id) and filter_var($id, \FILTER_VALIDATE_INT) !== false)
          and !is_int($id)) {
              throw new \InvalidArgumentException( "Integer ID expected." );
          }
  
          $this->id = (int) trim($id);
  
          return $this;
      }
code_tokens: public function setId ( $ id ) { // blacklist if ( ! ( is_string ( $ id ) and filter_var ( $ id , \ FILTER_VALIDATE_INT ) !== false ) and ! is_int ( $ id ) ) { throw new \ InvalidArgumentException ( "Integer ID expected." ) ; } $ this -> id = ( int ) trim ( $ id ) ; return $ this ; }
docstring: Sets the role ID.
  
  @param  int          $id
  @return RoleAbstract Fluent Interface
  
  @uses   $id
  @throws InvalidArgumentException If parameter is not integer-like.
docstring_tokens: Sets the role ID .