Agregar columna a Matrix PHP

foreach( $output as &$row) {
    $row->cls = 0;
    $row->parentID = 1;
}
NachooCh