protocolHandler = $protocolHandler; } /** * Forwards incoming data to the ProtocolParser. * Calls protected processData() * @param string $rawData * @return string */ public function processRawData($rawData) { $contentObject = $this->protocolHandler->parse($rawData); return $this->processContentObject($contentObject); } /** * This function will be the main entry point of any client. * @param string $data * @return string */ abstract protected function processContentObject($contentObject); /** * This function will load the given config. * @param array $config */ abstract public function loadConfig($config); /** * @param int $id */ public function setID($id) { $this->ID = $id; } /** * @param string $group */ public function setGroup($group) { $this->group = $group; } /** * Injects ClientManager * @param Client_ClientManager $clientManager */ public function injectClientManager($clientManager) { $this->clientManager = $clientManager; } } ?>