Code Duplication    Length = 9-10 lines in 2 locations

db/object.php 2 locations

@@ 402-410 (lines=9) @@
399
	 * get summary of object
400
	 * @return mixed (string|null)
401
	 */
402
	public function getSummary() {
403
		$objectName = $this->getObjectName();
404
405
		if (isset($this->vObject->{$objectName}->{'SUMMARY'})) {
406
			return $this->vObject->{$objectName}->{'SUMMARY'}->getValue();
407
		}
408
409
		return null;
410
	}
411
412
413
	/**
@@ 417-426 (lines=10) @@
414
	 * get last modified of object
415
	 * @return mixed (DateTime|null)
416
	 */
417
	public function getLastModified() {
418
		$objectName = $this->getObjectName();
419
420
		//TODO - fix for multiple objects
421
		if (isset($this->vObject->{$objectName}->{'LAST-MODIFIED'})) {
422
			return $this->vObject->{$objectName}->{'LAST-MODIFIED'}->getDateTime();
423
		}
424
425
		return null;
426
	}
427
428
429
	/**