Files
Ethica-vitrine/vendor/league/climate/src/TerminalObject/Basic/Tab.php
T
2018-04-11 17:57:57 +02:00

30 lines
552 B
PHP

<?php
namespace League\CLImate\TerminalObject\Basic;
/**
* Tab class to enable tabs to be output without using the escape character.
*/
class Tab extends Repeatable
{
/**
* Check if this object requires a new line should be added after the output.
*
* @return boolean
*/
public function sameLine()
{
return true;
}
/**
* Return the relevant number of tab characters.
*
* @return string
*/
public function result()
{
return str_repeat("\t", $this->count);
}
}