for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace SportTrackerConnector\Core\Date;
/**
* DateInterval helper class.
*/
final class DateInterval extends \DateInterval
{
* Get the total number of seconds from the DateInterval.
*
* @return integer
public function totalSeconds() : int
return $this->days * 86400 + $this->h * 3600 + $this->i * 60 + $this->s;
}