Model/DeploymentSite.php
public function addImageTemplate($item)
    {
        if (!($item instanceof ImageTemplate)) {
            if (is_array($item)) {
                try {
                    $item = new ImageTemplate($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate ImageTemplate. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "ImageTemplate"!', E_USER_WARNING);
            }
        }
        $this->imagetemplates[] = $item;

        return $this;
    }
public function addImageTemplate($item)
    {
        if (!($item instanceof ImageTemplate)) {
            if (is_array($item)) {
                try {
                    $item = new ImageTemplate($item);
                } catch (\Exception $e) {
                    trigger_error('Could not auto-instantiate ImageTemplate. ' . $e->getMessage(), E_USER_WARNING);
                }
            } else {
                trigger_error('Array parameter item is not of expected type "ImageTemplate"!', E_USER_WARNING);
            }
        }
        $this->imagetemplates[] = $item;

        return $this;
    }
Adds an object of "Imagetemplates" of the DeploymentSite.

@param ImageTemplate|array $item

@return DeploymentSite