Swift_Events_EventObject::__construct PHP Method

__construct() public method

Create a new EventObject originating at $source.
public __construct ( object $source )
$source object
    public function __construct($source)
    {
        $this->_source = $source;
    }

Usage Example

コード例 #1
0
ファイル: CommandEvent.php プロジェクト: eyumay/srms.psco
 /**
  * Create a new CommandEvent for $source with $command.
  * @param Swift_Transport $source
  * @param string $command
  * @param array $successCodes
  */
 public function __construct(Swift_Transport $source, $command, $successCodes = array())
 {
     parent::__construct($source);
     $this->_command = $command;
     $this->_successCodes = $successCodes;
 }
All Usage Examples Of Swift_Events_EventObject::__construct