git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7523 b9a71923-0436-4b27-9f14-aed3839534dd

This commit is contained in:
rGaillard
2011-07-06 10:11:35 +00:00
parent 69f2f09dc5
commit ba9cdcf295
646 changed files with 0 additions and 94688 deletions
@@ -1,71 +0,0 @@
<?php
/**
* Swift Mailer Response Event
* Please read the LICENSE file
* @copyright Chris Corbyn <chris@w3style.co.uk>
* @author Chris Corbyn <chris@w3style.co.uk>
* @package Swift_Events
* @license GNU Lesser General Public License
*/
/**
* Generated when Swift receives a server response
* @package Swift_Events
* @author Chris Corbyn <chris@w3style.co.uk>
*/
class Swift_Events_ResponseEvent extends Swift_Events
{
/**
* Contains the response received
* @var string
*/
protected $string = null;
/**
* Contains the response code
* @var int
*/
protected $code = null;
/**
* Constructor
* @param string The received response
*/
public function __construct($string)
{
$this->setString($string);
$this->setCode(substr($string, 0, 3));
}
/**
* Set the response received
* @param string The response
*/
public function setString($string)
{
$this->string = (string) $string;
}
/**
* Get the received response
* @return string
*/
public function getString()
{
return $this->string;
}
/**
* Set response code
* @param int The response code
*/
public function setCode($code)
{
$this->code = (int) $code;
}
/**
* Get the response code
* @return int
*/
public function getCode()
{
return $this->code;
}
}