| 1 |
<?php declare(strict_types=1); |
| 2 |
/** |
| 3 |
* @author Richard Perdaan <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
namespace MyParcelNL\Sdk\src\Concerns; |
| 7 |
|
| 8 |
|
| 9 |
trait HasDebugLabels |
| 10 |
{ |
| 11 |
/** |
| 12 |
* @param $myParcelCollection |
| 13 |
* @param $massage |
| 14 |
* |
| 15 |
* @return void |
| 16 |
*/ |
| 17 |
public function debugLinkOfLabels($myParcelCollection, $massage): void |
| 18 |
{ |
| 19 |
if (! getenv('CI')) { |
| 20 |
echo "\033[32mGenerated " . $massage . ": \033[0m"; |
| 21 |
print_r($myParcelCollection->getLinkOfLabels()); |
| 22 |
echo "\n\033[0m"; |
| 23 |
} |
| 24 |
|
| 25 |
return; |
| 26 |
} |
| 27 |
} |
| 28 |
|