Code Duplication    Length = 8-10 lines in 2 locations

src/Cornford/Setter/SettingBase.php 1 location

@@ 175-182 (lines=8) @@
172
	 *
173
	 * @return void
174
	 */
175
	protected function setCacheExpiry($value)
176
	{
177
		if (!is_bool($value) && !is_integer($value) && !$value instanceof DateTime) {
178
			throw new SettingArgumentException('Expiry is required in boolean, integer or DateTime format.');
179
		}
180
181
		$this->cacheExpiry = $value;
182
	}
183
184
	/**
185
	 * Get the cache tag

src/Cornford/Setter/Setting.php 1 location

@@ 212-221 (lines=10) @@
209
	 *
210
	 * @return self
211
	 */
212
	public function cacheExpires($expiry)
213
	{
214
		if (!is_bool($expiry) && !is_integer($expiry) && !$expiry instanceof DateTime) {
215
			throw new SettingArgumentException('Expiry is required in boolean, integer or DateTime format.');
216
		}
217
218
		$this->cacheExpiry = $expiry;
219
220
		return $this;
221
	}
222
223
}
224