Document the callback

This commit is contained in:
Adrien Crivelli 2020-06-28 17:34:50 +09:00 committed by GitHub
parent 2896e6ceb9
commit 5e64479c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -208,9 +208,15 @@ class Html extends BaseWriter
return $html;
}
public function setEditHtmlCallback(?callable $cbk): void
/**
* Set a callback to edit the entire HTML.
*
* The callback must accept the HTML as string as first parameter,
* and it must return the edited HTML as string.
*/
public function setEditHtmlCallback(?callable $callback): void
{
$this->editHtmlCallback = $cbk;
$this->editHtmlCallback = $callback;
}
const VALIGN_ARR = [