Your IP : 216.73.216.95


Current Path : /var/www/ljmtc/cbt/lib/spout/src/Spout/Writer/Common/Manager/
Upload File :
Current File : /var/www/ljmtc/cbt/lib/spout/src/Spout/Writer/Common/Manager/RowManager.php

<?php

namespace Box\Spout\Writer\Common\Manager;

use Box\Spout\Common\Entity\Row;

class RowManager
{
    /**
     * Detect whether a row is considered empty.
     * An empty row has all of its cells empty.
     *
     * @param Row $row
     * @return bool
     */
    public function isEmpty(Row $row)
    {
        foreach ($row->getCells() as $cell) {
            if (!$cell->isEmpty()) {
                return false;
            }
        }

        return true;
    }
}