public function __toString() { $timer = 'PT' . date('H:i:s', $this->seconds); if ($this->repeat !== null) { $timer = sprintf('R%1$02d/%2$s', $this->repeat, $timer); } return $timer; }