31    private TreeType $type;
 
   33    public function __construct(?TreeType $type = 
null){
 
   34        parent::__construct();
 
   36        $this->type = $type ?? TreeType::OAK;
 
   38        $trees = 
new Tree($type);
 
   39        $trees->setBaseAmount(5);
 
   40        $this->addPopulator($trees);
 
   43        $tallGrass->setBaseAmount(3);
 
   45        $this->addPopulator($tallGrass);
 
   47        $this->setElevation(63, 81);
 
   49        if($this->type === TreeType::BIRCH){
 
   50            $this->temperature = 0.6;
 
   51            $this->rainfall = 0.5;
 
   53            $this->temperature = 0.7;
 
   54            $this->rainfall = 0.8;
 
   58    public function getName() : 
string{
 
   59        return $this->type->getDisplayName() . 
" Forest";