src/Contao/Database/FakeResult.php
public function addRow($data, $rowId = null)
    {
        if (($rowId === null) && isset($data['id'])) {
            $rowId = $data['id'];
        }

        if ($rowId === null) {
            $rowId = count($this->rows);
        }

        $this->rows[$rowId] = $data;

        return $this;
    }
public function addRow($data, $rowId = null)
    {
        if (($rowId === null) && isset($data['id'])) {
            $rowId = $data['id'];
        }

        if ($rowId === null) {
            $rowId = count($this->rows);
        }

        $this->rows[$rowId] = $data;

        return $this;
    }
public function addRow ( $ data , $ rowId = null ) { if ( ( $ rowId === null ) && isset ( $ data [ 'id' ] ) ) { $ rowId = $ data [ 'id' ] ; } if ( $ rowId === null ) { $ rowId = count ( $ this -> rows ) ; } $ this -> rows [ $ rowId ] = $ data ; return $ this ; }
Add a row.

@param array    $data  The row data.

@param null|int $rowId The id for the row.

@return FakeResult
Add a row .