Adicionar coluna ao Matrix php

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