UHIN / x12-parser-library

MIT License
15 stars 15 forks source link

Add __isset() magic method for segments #6

Closed zlobato closed 4 years ago

zlobato commented 4 years ago

This adds the ability to lean on PHP's isset() method on the Segments

For Example:

$gs = new GS(...);
$gs02 = isset($gs->GS02) ?? '';

Previously, the above example would always set $gs02 to the empty string as this would always result in false.