original_string: protected function setUser($user)
      {
          if (!$this->isValidUsername($user)) {
              throw new \InvalidArgumentException("Invalid username '$user': double colon not allowed");
          }
          
          $this->user = (string)$user;
      }
code: protected function setUser($user)
      {
          if (!$this->isValidUsername($user)) {
              throw new \InvalidArgumentException("Invalid username '$user': double colon not allowed");
          }
          
          $this->user = (string)$user;
      }
code_tokens: protected function setUser ( $ user ) { if ( ! $ this -> isValidUsername ( $ user ) ) { throw new \ InvalidArgumentException ( "Invalid username '$user': double colon not allowed" ) ; } $ this -> user = ( string ) $ user ; }
docstring: Set the username
  
  @param string $user
  @throws \InvalidArgumentException for invalid username.
docstring_tokens: Set the username