/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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; }