public function appendRow($row): self
    {
        if (!$this->output instanceof ConsoleSectionOutput) {
            throw new RuntimeException(sprintf('Output should be an instance of "%s" when calling "%s".', ConsoleSectionOutput::class, __METHOD__));
        }

        if ($this->rendered) {
            $this->output->clear($this->calculateRowCount());
        }

        $this->addRow($row);
        $this->render();

        return $this;
    }
public function appendRow($row): self
    {
        if (!$this->output instanceof ConsoleSectionOutput) {
            throw new RuntimeException(sprintf('Output should be an instance of "%s" when calling "%s".', ConsoleSectionOutput::class, __METHOD__));
        }

        if ($this->rendered) {
            $this->output->clear($this->calculateRowCount());
        }

        $this->addRow($row);
        $this->render();

        return $this;
    }
public function appendRow ( $ row ) : self { if ( ! $ this -> output instanceof ConsoleSectionOutput ) { throw new RuntimeException ( sprintf ( 'Output should be an instance of "%s" when calling "%s".' , ConsoleSectionOutput :: class , __METHOD__ ) ) ; } if ( $ this -> rendered ) { $ this -> output -> clear ( $ this -> calculateRowCount ( ) ) ; } $ this -> addRow ( $ row ) ; $ this -> render ( ) ; return $ this ; }
Adds a row to the table, and re-renders the table.
Adds a row to the table and re - renders the table .