public function __clone() { $duration = new Duration(); $duration->copyFrom($this); return $duration; }