public function transform($content, $options = [])
    {
        if (!$content instanceof \DateInterval) {
            return 0;
        }

        $decTime = 0;
        $decTime += ($content->d ? $content->d * 60 * 24 : 0);
        $decTime += ($content->h ? $content->h * 60 : 0);
        $decTime += $content->i;
        $decTime += ($content->s ? $content->s / 60 : 0);

        return $decTime;
    }
public function transform($content, $options = [])
    {
        if (!$content instanceof \DateInterval) {
            return 0;
        }

        $decTime = 0;
        $decTime += ($content->d ? $content->d * 60 * 24 : 0);
        $decTime += ($content->h ? $content->h * 60 : 0);
        $decTime += $content->i;
        $decTime += ($content->s ? $content->s / 60 : 0);

        return $decTime;
    }
public function transform ( $ content , $ options = [ ] ) { if ( ! $ content instanceof \ DateInterval ) { return 0 ; } $ decTime = 0 ; $ decTime += ( $ content -> d ? $ content -> d * 60 * 24 : 0 ) ; $ decTime += ( $ content -> h ? $ content -> h * 60 : 0 ) ; $ decTime += $ content -> i ; $ decTime += ( $ content -> s ? $ content -> s / 60 : 0 ) ; return $ decTime ; }
calculates the time down to the minutes

@param \DateInterval $content
@param array $options

@return string
calculates the time down to the minutes