Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 510-517 (lines=8) @@
507
	 * @param ITemplate $value the edit item template
508
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
509
	 */
510
	public function setEditItemTemplate($value)
511
	{
512
		if ($value instanceof ITemplate || $value === null) {
513
			$this->_editItemTemplate = $value;
514
		} else {
515
			throw new TInvalidDataTypeException('datalist_template_required', 'EditItemTemplate');
516
		}
517
	}
518
519
	/**
520
	 * @return TTableItemStyle the style for edit item

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

@@ 113-120 (lines=8) @@
110
	 * @param ITemplate $value the edit item template
111
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
112
	 */
113
	public function setEditItemTemplate($value)
114
	{
115
		if ($value instanceof ITemplate || $value === null) {
116
			$this->_editItemTemplate = $value;
117
		} else {
118
			throw new TInvalidDataTypeException('templatecolumn_template_required', 'EditItemTemplate');
119
		}
120
	}
121
122
	/**
123
	 * @return ITemplate the item template