# woo-postnl/4.4.1/vendor/myparcelnl/sdk/src/Concerns/HasDebugLabels.php

PostNL for WooCommerce, version 4.4.1. 28 lines.

- Page: https://pluginprobe.com/plugins/woo-postnl/4.4.1/code/vendor/myparcelnl/sdk/src/Concerns/HasDebugLabels.php
- Raw: https://pluginprobe.com/plugins/woo-postnl/4.4.1/raw/vendor/myparcelnl/sdk/src/Concerns/HasDebugLabels.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.1/code/vendor/myparcelnl/sdk/src/Concerns/HasDebugLabels.php#L10-L20`.

```php
<?php declare(strict_types=1);
/**
 * @author Richard Perdaan <support@myparcel.nl>
 */

namespace MyParcelNL\Sdk\src\Concerns;


trait HasDebugLabels
{
    /**
     * @param $myParcelCollection
     * @param $massage
     *
     * @return void
     */
    public function debugLinkOfLabels($myParcelCollection, $massage): void
    {
        if (! getenv('CI')) {
            echo "\033[32mGenerated " . $massage . ": \033[0m";
            print_r($myParcelCollection->getLinkOfLabels());
            echo "\n\033[0m";
        }

        return;
    }
}

```
