protected function setProperty(string $key, array $data, &$property, $default = null): void
    {
        if (isset($data[$key])) {
            $property = $data[$key];
            return;
        }

        // Only set the property to the default IF it is NOT null. Otherwise leave the value of the property as set
        // in the class.
        if ($default !== null) {
            $property = $default; //@codeCoverageIgnore
        }
    }