code: public function setImagetemplates(array $imagetemplates)
      {
          $this->imagetemplates = [];
  
          foreach ($imagetemplates as $item) {
              $this->addImageTemplate($item);
          }
  
          return $this;
      }
docs: Sets the "imagetemplates" of the DeploymentSite.
  
  @param ImageTemplate[] $imagetemplates
  
  @return DeploymentSite