protected function checkOption(?array $options): void
    {
        if (isset($options['tag'])) {
            return;
        }

        if (isset($options['group'])) {
            return;
        }

        if ($options !== null) {
            throw new NotSupportedException('Only the options "tag" and "group" are supported.');
        }
    }
protected function checkOption(?array $options): void
    {
        if (isset($options['tag'])) {
            return;
        }

        if (isset($options['group'])) {
            return;
        }

        if ($options !== null) {
            throw new NotSupportedException('Only the options "tag" and "group" are supported.');
        }
    }
protected function checkOption ( ? array $ options ) : void { if ( isset ( $ options [ 'tag' ] ) ) { return ; } if ( isset ( $ options [ 'group' ] ) ) { return ; } if ( $ options !== null ) { throw new NotSupportedException ( 'Only the options "tag" and "group" are supported.' ) ; } }
Check if the right option are given.

@param null|array $options

@throws \Viserio\Component\Contract\Parser\Exception\NotSupportedException

@return void
Check if the right option are given .