MAXakaWIZARD/xls-writer

View on GitHub
src/Record/Codepage.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Xls\Record;

class Codepage extends AbstractRecord
{
    const NAME = 'CODEPAGE';
    const ID = 0x0042;

    /**
     * Generate the CODEPAGE biff record
     * @param $codepage
     *
     * @return string
     */
    public function getData($codepage)
    {
        $data = pack('v', $codepage);

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