Code Duplication    Length = 8-8 lines in 3 locations

framework/Web/UI/WebControls/TDataList.php 1 location

@@ 411-418 (lines=8) @@
408
	 * @param ITemplate $value the template for item
409
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
410
	 */
411
	public function setItemTemplate($value)
412
	{
413
		if ($value instanceof ITemplate || $value === null) {
414
			$this->_itemTemplate = $value;
415
		} else {
416
			throw new TInvalidDataTypeException('datalist_template_required', 'ItemTemplate');
417
		}
418
	}
419
420
	/**
421
	 * @return TTableItemStyle the style for item

framework/Web/UI/WebControls/TRepeater.php 1 location

@@ 292-299 (lines=8) @@
289
	 * @param ITemplate $value the template for repeater items
290
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
291
	 */
292
	public function setItemTemplate($value)
293
	{
294
		if ($value instanceof \Prado\Web\UI\ITemplate || $value === null) {
295
			$this->_itemTemplate = $value;
296
		} else {
297
			throw new TInvalidDataTypeException('repeater_template_required', 'ItemTemplate');
298
		}
299
	}
300
301
	/**
302
	 * @return ITemplate the alternative template string for the item

framework/Web/UI/WebControls/TTemplateColumn.php 1 location

@@ 134-141 (lines=8) @@
131
	 * @param ITemplate $value the item template
132
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
133
	 */
134
	public function setItemTemplate($value)
135
	{
136
		if ($value instanceof ITemplate || $value === null) {
137
			$this->_itemTemplate = $value;
138
		} else {
139
			throw new TInvalidDataTypeException('templatecolumn_template_required', 'ItemTemplate');
140
		}
141
	}
142
143
	/**
144
	 * @return ITemplate the header template