/** * Constructor. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Set the transport $this->_transport = $config->transport; //Set the request $this->_request = $config->request; }
/** * Constructor. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Create the transport queue $this->_queue = $this->getObject('lib:object.queue'); //Attach the response transport handlers $transports = (array) ObjectConfig::unbox($config->transports); foreach ($transports as $key => $value) { if (is_numeric($key)) { $this->attachTransport($value); } else { $this->attachTransport($key, $value); } } }
public function __construct(string $string, string $controllerClass, string $controllerMethod) { $this->string = $string; parent::__construct($controllerClass, $controllerMethod); }
public function __construct(array $data, string $controllerClass, string $controllerMethod) { $this->data = $data; parent::__construct($controllerClass, $controllerMethod); }