for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace EdifactParser\Segments;
final class UNHMessageHeader implements SegmentInterface
{
public const NAME = 'UNH';
/** @var array */
private $rawValues;
public function __construct(array $rawValues)
$this->rawValues = $rawValues;
}
public function name(): string
return self::NAME;
public function subSegmentKey(): string
return $this->rawValues[1][0];
public function rawValues(): array
return $this->rawValues;