public function toArray(string $loadingMethod = null): array
    {
        if (in_array($loadingMethod, [DotEnv::LOAD, DotEnv::OVERLOAD])) {

            $this->immutable = $loadingMethod === DotEnv::LOAD;

            $this->setter = true;

        } else {

            $this->setter = false;

        }
        
        $this->getContent();

        $this->processEntries();

        return $this->attributes;
    }