public function apply($button)
{
if ($button instanceof TImageButton) {
if ($button->getImageUrl() === '') {
$button->setImageUrl($this->getImageUrl());
}
}
if ($button->getText() === '') {
$button->setText($this->getButtonText());
}
$button->getStyle()->mergeWith($this);
}