Exemplo n.º 1
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_OUTPUT);
     $this->createSocket(self::SOCKET_ARRAY);
     $this->createSocket(self::SOCKET_DATA);
 }
Exemplo n.º 2
0
 /**
  * Binds the given node to a socket.
  *
  * @param string $socket The name of the socket to bind to.
  * @param NodeInterface $node The node to bind to.
  */
 public function bind($socket, NodeInterface $node)
 {
     if ($socket != self::SOCKET_VALUE && !$this->hasSocket($socket)) {
         $this->createSocket($socket);
     }
     parent::bind($socket, $node);
 }
Exemplo n.º 3
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_OUTPUT);
     $this->createSocket(self::SOCKET_FILENAME);
     $this->createSocket(self::SOCKET_MODE);
     $this->createSocket(self::SOCKET_STREAM);
 }
Exemplo n.º 4
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_OUTPUT);
     $this->createSocket(self::SOCKET_LFT);
     $this->createSocket(self::SOCKET_RGT);
     $this->createSocket(self::SOCKET_RESULT);
 }
Exemplo n.º 5
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_OUTPUT);
     $this->createSocket(self::SOCKET_PATTERN);
     $this->createSocket(self::SOCKET_REPLACEMENT);
     $this->createSocket(self::SOCKET_SUBJECT);
     $this->createSocket(self::SOCKET_RESULT);
 }
Exemplo n.º 6
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_TRUE);
     $this->createSocket(self::SOCKET_FALSE);
     $this->createSocket(self::SOCKET_MIN);
     $this->createSocket(self::SOCKET_MAX);
     $this->createSocket(self::SOCKET_VALUE);
 }
Exemplo n.º 7
0
 /**
  * Initializes a new instance of this class.
  *
  * @param callable $callback The callback.
  */
 public function __construct($callback)
 {
     parent::__construct();
     if (!is_callable($callback)) {
         throw new \InvalidArgumentException('The provided callback is not callable.');
     }
     $this->callback = $callback;
     $this->createSocket(self::SOCKET_OUTPUT);
 }
Exemplo n.º 8
0
 /**
  * Initializes a new instance of this class.
  */
 public function __construct()
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_EQUAL);
     $this->createSocket(self::SOCKET_NOT_EQUAL);
     $this->createSocket(self::SOCKET_LESS_THAN);
     $this->createSocket(self::SOCKET_GREATER_THAN);
     $this->createSocket(self::SOCKET_VALUELFT);
     $this->createSocket(self::SOCKET_VALUERGT);
 }
Exemplo n.º 9
0
 /**
  * Initializes a new instance of this class.
  *
  * @param TransportInterface $transport The mail transport used to send email messages.
  */
 public function __construct(TransportInterface $transport)
 {
     parent::__construct();
     $this->createSocket(self::SOCKET_OUTPUT_SUCCESS);
     $this->createSocket(self::SOCKET_OUTPUT_ERROR);
     $this->createSocket(self::SOCKET_TO);
     $this->createSocket(self::SOCKET_SUBJECT);
     $this->createSocket(self::SOCKET_MESSAGE);
     $this->createSocket(self::SOCKET_FROM);
     $this->transport = $transport;
 }