public function convertToNativeArray() : array
    {
        $array = [];

        foreach($this->getElements() as $element)
        {
            $value = $element->getValue();

            if ($value instanceof ValueNode) {
                $array[$element->getKey()] = $value->getRawValue();
            } 
            elseif ($value instanceof ArrayNode) {
                $array[$element->getKey()] = $value->convertToNativeArray();
            }
            else {
                throw new LogicalNodeException("You cannot convert a ctn array to PHP that contains a reference to a service or parameter.");
            }
        }

        return $array;
    }