Example #1
0
 public function __construct(Smtp $smtp, $data)
 {
     parent::__construct($smtp);
     if (is_string($data)) {
         $data = explode($smtp->getConfig()->get('email.newline', "\r\n"), $data);
     }
     $this->data = $data;
 }
Example #2
0
 protected function invoke(Command $command)
 {
     $this->assertNull($command->execute());
 }
Example #3
0
 public function __construct(Smtp $smtp, $mechanism)
 {
     parent::__construct($smtp);
     $this->mechanism = $mechanism;
 }
Example #4
0
 public function __construct(Smtp $smtp, $command)
 {
     parent::__construct($smtp);
     $this->command = $command;
 }
Example #5
0
 /**
  * Easily invoke a command
  *
  * @param Command $command
  *
  * @since 2.0
  */
 public function invoke(Command $command)
 {
     $command->execute();
 }