public function writeBadgeLine(
        $message, array $placeholders = [], $badgeText, $badgeColor,
        $preNewLine = false, $postNewLine = false
    ) {
        if ($preNewLine) {
            $this->adapter->writeLine();
        }

        $this->adapter->write(
            $this->translator->translate($badgeText),
            Color::NORMAL,
            $badgeColor
        );

        $this->adapter->write(' ');
        $this->adapter->writeLine(
            vsprintf($this->translator->translate($message), $placeholders)
        );

        if ($postNewLine) {
            $this->adapter->writeLine();
        }
    }
public function writeBadgeLine(
        $message, array $placeholders = [], $badgeText, $badgeColor,
        $preNewLine = false, $postNewLine = false
    ) {
        if ($preNewLine) {
            $this->adapter->writeLine();
        }

        $this->adapter->write(
            $this->translator->translate($badgeText),
            Color::NORMAL,
            $badgeColor
        );

        $this->adapter->write(' ');
        $this->adapter->writeLine(
            vsprintf($this->translator->translate($message), $placeholders)
        );

        if ($postNewLine) {
            $this->adapter->writeLine();
        }
    }
public function writeBadgeLine ( $ message , array $ placeholders = [ ] , $ badgeText , $ badgeColor , $ preNewLine = false , $ postNewLine = false ) { if ( $ preNewLine ) { $ this -> adapter -> writeLine ( ) ; } $ this -> adapter -> write ( $ this -> translator -> translate ( $ badgeText ) , Color :: NORMAL , $ badgeColor ) ; $ this -> adapter -> write ( ' ' ) ; $ this -> adapter -> writeLine ( vsprintf ( $ this -> translator -> translate ( $ message ) , $ placeholders ) ) ; if ( $ postNewLine ) { $ this -> adapter -> writeLine ( ) ; } }
Write a line with customizable badge

@param string $message
@param array  $placeholders
@param string $badgeText
@param string $badgeColor
@param bool   $preNewLine
@param bool   $postNewLine
Write a line with customizable badge