/** * XXX. * @param null $participant */ public function __construct($participant = NULL) { parent::__construct(); $a = (array) $participant; $this->copyValues($a); $this->email = CRM_Utils_Array::value('email', $participant); }