original_string: public function attr($attr, $data, $selector = null)
      {
          return $this->cmd('attr', array(
              $attr,
              $data
          ), $selector);
      }
code: public function attr($attr, $data, $selector = null)
      {
          return $this->cmd('attr', array(
              $attr,
              $data
          ), $selector);
      }
code_tokens: public function attr ( $ attr , $ data , $ selector = null ) { return $ this -> cmd ( 'attr' , array ( $ attr , $ data ) , $ selector ) ; }
docstring: Set the attribute of a jQuery selector
  
  Example:
  
  <code>
  PheryResponse::factory()
  ->attr('href', 'http://url.com', 'a#link-' . $args['id']);
  </code>
  
  @param string $attr HTML attribute of the item
  @param string $data Value
  @param string $selector [optional] Provide the jQuery selector directly
  
  @return PheryResponse
docstring_tokens: Set the attribute of a jQuery selector