code: public function setEnvironment($environment)
      {   
          $this->environment = $environment;
      
          $host = $this->supportedEnvironments['production']['host'];
  
          if(in_array($environment,array_keys($this->supportedEnvironments))){
              $host = $this->supportedEnvironments[$environment]['host'];
          }
  
          $this->setHost($host);
  
          return $this;
      }
docs: Sets the environment
  
  @param bool $environment
  
  @return Configuration