<?php

namespace ModulesGarden\OpenXchangeAddon\Core\Api\AbstractApi;

use ModulesGarden\OpenXchangeAddon\Core\Interfaces\CurlParser;

/**
 * Description of Parser
 *
 * @author Rafał Ossowski <rafal.os@modulesgarden.com>
 */
class Parser implements CurlParser
{

    public function rebuild($head, $size)
    {
        return [
            substr($head, 0, $size),
            substr($head, $size)
        ];
    }
}
