public function __construct($topicId = null, $center = null) { $this->id = $topicId ?: uniqid(); $this->center = $center ?: NotificationCenter::getInstance(); $this->encoder = $this->center->getEncoder(); $this->requester = $this->center->createRequester(); }