HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/tools/swift/Swift/Plugin/EasySwiftResponseTracker.php
<?php

/**
 * EasySwift Response Tracker
 * Please read the LICENSE file
 * @copyright Chris Corbyn <chris@w3style.co.uk>
 * @author Chris Corbyn <chris@w3style.co.uk>
 * @package EasySwift
 * @license GNU Lesser General Public License
 */

require_once dirname(__FILE__) . "/../ClassLoader.php";
Swift_ClassLoader::load("Swift_Events_ResponseListener");

/**
 * EasySwift, Swift Response Tracker.
 * Updates properties in EasySwift when a response is received by Swift.
 * @package EasySwift
 * @author Chris Corbyn <chris@w3style.co.uk>
 */
class Swift_Plugin_EasySwiftResponseTracker implements Swift_Events_ResponseListener
{
  /**
   * The target object to update
   * @var EasySwift
   */
  protected $target = null;
  
  /**
   * Constructor
   * @param EasySwift The instance of EasySwift to run against
   */
  public function __construct($obj)
  {
    $this->target = $obj;
  }
  /**
   * Response listener method
   * @param Swift_Events_ResponseEvent The event occurred in Swift
   */
  public function responseReceived(Swift_Events_ResponseEvent $e)
  {
    $this->target->lastResponse = $e->getString();
    $this->target->responseCode = $e->getCode();
  }
}