original_string: public function setType($type)
      {
          $attr = $this->createAttribute('type');
          $this->doc->appendChild($attr);
          $attr->appendChild($this->createTextNode($type));
      }
code: public function setType($type)
      {
          $attr = $this->createAttribute('type');
          $this->doc->appendChild($attr);
          $attr->appendChild($this->createTextNode($type));
      }
code_tokens: public function setType ( $ type ) { $ attr = $ this -> createAttribute ( 'type' ) ; $ this -> doc -> appendChild ( $ attr ) ; $ attr -> appendChild ( $ this -> createTextNode ( $ type ) ) ; }
docstring: Sets the presence type
  @param string $type see http://xmpp.org/rfcs/rfc3921.html for more info
  unavailable -- Signals that the entity is no longer available for communication.
  subscribe -- The sender wishes to subscribe to the recipient's presence.
  subscribed -- The sender has allowed the recipient to receive their presence.
  unsubscribe -- The sender is unsubscribing from another entity's presence.
  unsubscribed -- The subscription request has been denied or a previously-granted subscription has been cancelled.
  probe -- A request for an entity's current presence; SHOULD be generated only by a server on behalf of a user.
  error -- An error has occurred regarding processing or delivery of a previously-sent presence stanza.
  @return boolean If it is written or not
docstring_tokens: Sets the presence type