You can add a tooltip to any bootstrap element by calling the tooltip function on the element $btn->tooltip();
<?php
$btn = new Barebone\Bootstrap\Button('Tooltip top');
$btn->tooltip('Tooltip is positioned on the top');
echo $btn;
$btn1 = new Barebone\Bootstrap\Button('Tooltip right');
$btn1->tooltip('Tooltip is positioned on the right', 'right');
echo $btn1;
$btn2 = new Barebone\Bootstrap\Button('Tooltip bottom');
$btn2->tooltip('Tooltip is positioned on the bottom', 'bottom');
echo $btn2;
$btn3 = new Barebone\Bootstrap\Button('Tooltip left');
$btn3->tooltip('Tooltip is positioned on the left', 'left');
echo $btn3;
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip is positioned on the top">Tooltip top</button>
<?php
$btn = new Barebone\Bootstrap\Button('Tooltip top');
$btn->popover('A title in top', 'Tooltip is positioned on the top');
echo $btn;
$btn1 = new Barebone\Bootstrap\Button('Tooltip right');
$btn1->popover('A title in top', 'Tooltip is positioned on the right', 'right');
echo $btn1;
$btn2 = new Barebone\Bootstrap\Button('Tooltip bottom');
$btn2->popover('A title in top', 'Tooltip is positioned on the bottom', 'bottom');
echo $btn2;
$btn3 = new Barebone\Bootstrap\Button('Tooltip left');
$btn3->popover('A title in top', 'Tooltip is positioned on the left', 'left');
echo $btn3;
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="top" data-title="A title in top" data-content="Tooltip is positioned on the top">Tooltip top</button>