public function __construct($userEvent, array $headers = []) { parent::__construct('UserEvent'); $this->setKey('UserEvent', $userEvent); foreach ($headers as $key => $value) { $this->setKey((string) $key, (string) $value); } }