Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php final class PhabricatorMailEmailMessage extends PhabricatorMailExternalMessage { ..

Decoded Output download

<?php

final class PhabricatorMailEmailMessage
  extends PhabricatorMailExternalMessage {

  const MESSAGETYPE = 'email';

  private $fromAddress;
  private $replyToAddress;
  private $toAddresses = array();
  private $ccAddresses = array();
  private $headers = array();
  private $attachments = array();
  private $subject;
  private $textBody;
  private $htmlBody;

  public function newMailMessageEngine() {
    return new PhabricatorMailEmailEngine();
  }

  public function setFromAddress(PhutilEmailAddress $from_address) {
    $this->fromAddress = $from_address;
    return $this;
  }

  public function getFromAddress() {
    return $this->fromAddress;
  }

  public function setReplyToAddress(PhutilEmailAddress $address) {
    $this->replyToAddress = $address;
    return $this;
  }

  public function getReplyToAddress() {
    return $this->replyToAddress;
  }

  public function setToAddresses(array $addresses) {
    assert_instances_of($addresses, 'PhutilEmailAddress');
    $this->toAddresses = $addresses;
    return $this;
  }

  public function getToAddresses() {
    return $this->toAddresses;
  }

  public function setCCAddresses(array $addresses) {
    assert_instances_of($addresses, 'PhutilEmailAddress');
    $this->ccAddresses = $addresses;
    return $this;
  }

  public function getCCAddresses() {
    return $this->ccAddresses;
  }

  public function setHeaders(array $headers) {
    assert_instances_of($headers, 'PhabricatorMailHeader');
    $this->headers = $headers;
    return $this;
  }

  public function getHeaders() {
    return $this->headers;
  }

  public function setAttachments(array $attachments) {
    assert_instances_of($attachments, 'PhabricatorMailAttachment');
    $this->attachments = $attachments;
    return $this;
  }

  public function getAttachments() {
    return $this->attachments;
  }

  public function setSubject($subject) {
    $this->subject = $subject;
    return $this;
  }

  public function getSubject() {
    return $this->subject;
  }

  public function setTextBody($text_body) {
    $this->textBody = $text_body;
    return $this;
  }

  public function getTextBody() {
    return $this->textBody;
  }

  public function setHTMLBody($html_body) {
    $this->htmlBody = $html_body;
    return $this;
  }

  public function getHTMLBody() {
    return $this->htmlBody;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorMailEmailMessage
  extends PhabricatorMailExternalMessage {

  const MESSAGETYPE = 'email';

  private $fromAddress;
  private $replyToAddress;
  private $toAddresses = array();
  private $ccAddresses = array();
  private $headers = array();
  private $attachments = array();
  private $subject;
  private $textBody;
  private $htmlBody;

  public function newMailMessageEngine() {
    return new PhabricatorMailEmailEngine();
  }

  public function setFromAddress(PhutilEmailAddress $from_address) {
    $this->fromAddress = $from_address;
    return $this;
  }

  public function getFromAddress() {
    return $this->fromAddress;
  }

  public function setReplyToAddress(PhutilEmailAddress $address) {
    $this->replyToAddress = $address;
    return $this;
  }

  public function getReplyToAddress() {
    return $this->replyToAddress;
  }

  public function setToAddresses(array $addresses) {
    assert_instances_of($addresses, 'PhutilEmailAddress');
    $this->toAddresses = $addresses;
    return $this;
  }

  public function getToAddresses() {
    return $this->toAddresses;
  }

  public function setCCAddresses(array $addresses) {
    assert_instances_of($addresses, 'PhutilEmailAddress');
    $this->ccAddresses = $addresses;
    return $this;
  }

  public function getCCAddresses() {
    return $this->ccAddresses;
  }

  public function setHeaders(array $headers) {
    assert_instances_of($headers, 'PhabricatorMailHeader');
    $this->headers = $headers;
    return $this;
  }

  public function getHeaders() {
    return $this->headers;
  }

  public function setAttachments(array $attachments) {
    assert_instances_of($attachments, 'PhabricatorMailAttachment');
    $this->attachments = $attachments;
    return $this;
  }

  public function getAttachments() {
    return $this->attachments;
  }

  public function setSubject($subject) {
    $this->subject = $subject;
    return $this;
  }

  public function getSubject() {
    return $this->subject;
  }

  public function setTextBody($text_body) {
    $this->textBody = $text_body;
    return $this;
  }

  public function getTextBody() {
    return $this->textBody;
  }

  public function setHTMLBody($html_body) {
    $this->htmlBody = $html_body;
    return $this;
  }

  public function getHTMLBody() {
    return $this->htmlBody;
  }

}

Function Calls

None

Variables

None

Stats

MD5 a5e8f954c6d126db47a8904623508949
Eval Count 0
Decode Time 85 ms