Swift_Events_EventObject::__construct PHP Метод

__construct() публичный Метод

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

Usage Example

Пример #1
0
 /**
  * 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