$paramsEndNote : This parameter is an associative array and you must indicate the key and the value

require_once 'classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->addEndnote(
array(
'textDocument' => 'Lorem ipsum dolor sit amet',
'textEndNote' => 'endnote',
'font' => 'Arial'
)
);
$docx->createDocx('example_endnote');
Your comments