MAXakaWIZARD/xls-writer

View on GitHub
src/Record/ExternalBook.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Xls\Record;

class ExternalBook extends AbstractRecord
{
    const NAME = 'EXTERNALBOOK';
    const ID = 0x01AE;

    /**
     * Generate Internal SUPBOOK record
     * @param int $worksheetsCount
     *
     * @return string
     */
    public function getData($worksheetsCount)
    {
        $data = pack("vv", $worksheetsCount, 0x0401);

        return $this->getFullRecord($data);
    }
}