# woo-postnl/4.4.0/vendor/myparcelnl/sdk/src/Helper/LabelHelper.php

PostNL for WooCommerce, version 4.4.0. 46 lines.

- Page: https://pluginprobe.com/plugins/woo-postnl/4.4.0/code/vendor/myparcelnl/sdk/src/Helper/LabelHelper.php
- Raw: https://pluginprobe.com/plugins/woo-postnl/4.4.0/raw/vendor/myparcelnl/sdk/src/Helper/LabelHelper.php
- Modified: 2021-05-11T12:49:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-postnl/4.4.0/code/vendor/myparcelnl/sdk/src/Helper/LabelHelper.php#L10-L20`.

```php
<?php declare(strict_types=1);
/**
 * If you want to add improvements, please create a fork in our GitHub:
 * https://github.com/myparcelnl
 *
 * @author      Reindert Vetter <reindert@myparcel.nl>
 * @copyright   2010-2020 MyParcel
 * @license     http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US  CC BY-NC-ND 3.0 NL
 * @link        https://github.com/myparcelnl/sdk
 * @since       File available since Release v0.1.0
 */

namespace MyParcelNL\Sdk\src\Helper;

class LabelHelper
{
    /**
     * Generating positions for A4 paper
     *
     * @param int $start
     *
     * @return string
     */
    public static function getPositions($start)
    {
        $aPositions = [];
        switch ($start) {
            /** @noinspection PhpMissingBreakStatementInspection */
            case 1:
                $aPositions[] = 1;
            /** @noinspection PhpMissingBreakStatementInspection */
            case 2:
                $aPositions[] = 2;
            /** @noinspection PhpMissingBreakStatementInspection */
            case 3:
                $aPositions[] = 3;
            /** @noinspection PhpMissingBreakStatementInspection */
            case 4:
                $aPositions[] = 4;
                break;
        }

        return implode(';', $aPositions);
    }
}

```
