public function __construct($type, $payload = array()) { $this->type = $type; $this->payload = $payload; }