protected function drawDash($text = '', $text_first = false, $align = 'R')
    {
        $cell = function ($text, $align) {
            $this->Cell(177, 4, $text, 0, 1, $align);
        };

        if ($text_first) {
            $cell($text, $align);
        }

        $this->SetLineWidth(static::DEFAULT_LINE_WIDTH * 0.625);
        $y = $this->GetY();
        $this->SetDash(...static::DASH_STYLE);
        $this->Line(10, $y, 187, $y);
        $this->SetDash();
        $this->SetLineWidth(static::DEFAULT_LINE_WIDTH);

        if (!$text_first) {
            $cell($text, $align);
        }
    }
protected function drawDash($text = '', $text_first = false, $align = 'R')
    {
        $cell = function ($text, $align) {
            $this->Cell(177, 4, $text, 0, 1, $align);
        };

        if ($text_first) {
            $cell($text, $align);
        }

        $this->SetLineWidth(static::DEFAULT_LINE_WIDTH * 0.625);
        $y = $this->GetY();
        $this->SetDash(...static::DASH_STYLE);
        $this->Line(10, $y, 187, $y);
        $this->SetDash();
        $this->SetLineWidth(static::DEFAULT_LINE_WIDTH);

        if (!$text_first) {
            $cell($text, $align);
        }
    }
protected function drawDash ( $ text = '' , $ text_first = false , $ align = 'R' ) { $ cell = function ( $ text , $ align ) { $ this -> Cell ( 177 , 4 , $ text , 0 , 1 , $ align ) ; } ; if ( $ text_first ) { $ cell ( $ text , $ align ) ; } $ this -> SetLineWidth ( static :: DEFAULT_LINE_WIDTH * 0.625 ) ; $ y = $ this -> GetY ( ) ; $ this -> SetDash ( ... static :: DASH_STYLE ) ; $ this -> Line ( 10 , $ y , 187 , $ y ) ; $ this -> SetDash ( ) ; $ this -> SetLineWidth ( static :: DEFAULT_LINE_WIDTH ) ; if ( ! $ text_first ) { $ cell ( $ text , $ align ) ; } }
Inserts a dashed line, with optional text before or after

The text uses previous font

@param string  $text       An optional text
@param boolean $text_first If the text comes first
@param string  $align      Aligns the text (L|C|R)
Inserts a dashed line with optional text before or after