src/Payload.php
public function getCustomValue($key)
    {
        if (!array_key_exists($key, $this->customValues)) {
            throw InvalidPayloadException::notExistingCustomValue($key);
        }

        return $this->customValues[$key];
    }
public function getCustomValue($key)
    {
        if (!array_key_exists($key, $this->customValues)) {
            throw InvalidPayloadException::notExistingCustomValue($key);
        }

        return $this->customValues[$key];
    }
public function getCustomValue ( $ key ) { if ( ! array_key_exists ( $ key , $ this -> customValues ) ) { throw InvalidPayloadException :: notExistingCustomValue ( $ key ) ; } return $ this -> customValues [ $ key ] ; }
Get custom value.

@param $key
@return mixed
@throws InvalidPayloadException
Get custom value .