Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 665-672 (lines=8) @@
662
	 * @param ITemplate $value the template applied when no data is bound to the datagrid
663
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
664
	 */
665
	public function setEmptyTemplate($value)
666
	{
667
		if ($value instanceof ITemplate || $value === null) {
668
			$this->_emptyTemplate = $value;
669
		} else {
670
			throw new TInvalidDataTypeException('datagrid_template_required', 'EmptyTemplate');
671
		}
672
	}
673
674
	/**
675
	 * This method overrides parent's implementation to handle

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

@@ 625-632 (lines=8) @@
622
	 * @param ITemplate $value the template applied when no data is bound to the datalist
623
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
624
	 */
625
	public function setEmptyTemplate($value)
626
	{
627
		if ($value instanceof ITemplate || $value === null) {
628
			$this->_emptyTemplate = $value;
629
		} else {
630
			throw new TInvalidDataTypeException('datalist_template_required', 'EmptyTemplate');
631
		}
632
	}
633
634
	/**
635
	 * @return ITemplate the separator template

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

@@ 376-383 (lines=8) @@
373
	 * @param ITemplate $value the template applied when no data is bound to the repeater
374
	 * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null.
375
	 */
376
	public function setEmptyTemplate($value)
377
	{
378
		if ($value instanceof \Prado\Web\UI\ITemplate || $value === null) {
379
			$this->_emptyTemplate = $value;
380
		} else {
381
			throw new TInvalidDataTypeException('repeater_template_required', 'EmptyTemplate');
382
		}
383
	}
384
385
	/**
386
	 * @return ITemplate the separator template