\Bitrix\Main\Grid\Panel\Snippet\Button public \Bitrix\Main\Grid\Panel\Snippet\Button::setText( string $text = "" );
Method sets button text and returns object of class Snippet\Button.
Snippet\Button