protected function isAllHeadingValuesPresentInRow(?array $row){

        if (true === empty($row)) {
            return false;
        }

        foreach($this->targettedHeadingValues as $headerValue){

            if (false === in_array(trim($headerValue), $row)) {
                //print($headerValue . ' not in ' . print_r($row,true));
                return false;
            }

        }

        return true;
    }
protected function isAllHeadingValuesPresentInRow(?array $row){

        if (true === empty($row)) {
            return false;
        }

        foreach($this->targettedHeadingValues as $headerValue){

            if (false === in_array(trim($headerValue), $row)) {
                //print($headerValue . ' not in ' . print_r($row,true));
                return false;
            }

        }

        return true;
    }
protected function isAllHeadingValuesPresentInRow ( ? array $ row ) { if ( true === empty ( $ row ) ) { return false ; } foreach ( $ this -> targettedHeadingValues as $ headerValue ) { if ( false === in_array ( trim ( $ headerValue ) , $ row ) ) { //print($headerValue . ' not in ' . print_r($row,true)); return false ; } } return true ; }
Allows additional columns in the spreadsheet, as long as all the targetted columns are present.

@param array|null $row
@return bool
Allows additional columns in the spreadsheet as long as all the targetted columns are present .