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 UnknownSegment implements SegmentInterface
{
public const NAME = 'Unknown';
/** @var array */
private $rawValues;
public function __construct(array $rawValues)
$this->rawValues = $rawValues;
}
public function name(): string
return self::NAME;
public function subSegmentKey(): string
$encodedValues = json_encode($this->rawValues);
return ($encodedValues) ? md5($encodedValues) : md5(self::NAME);
public function rawValues(): array
return $this->rawValues;