public function max(callable $callback = null)
    {

        if ($this->isEmpty()) {

            return $this->createTime(0, 0, 0);

        } elseif ($callback === null) {

            $seconds = max($this->toArrayOfSeconds());

            return $this->createTime(0, 0, $seconds);

        }

        return parent::max($callback);
    }
public function max(callable $callback = null)
    {

        if ($this->isEmpty()) {

            return $this->createTime(0, 0, 0);

        } elseif ($callback === null) {

            $seconds = max($this->toArrayOfSeconds());

            return $this->createTime(0, 0, $seconds);

        }

        return parent::max($callback);
    }
public function max ( callable $ callback = null ) { if ( $ this -> isEmpty ( ) ) { return $ this -> createTime ( 0 , 0 , 0 ) ; } elseif ( $ callback === null ) { $ seconds = max ( $ this -> toArrayOfSeconds ( ) ) ; return $ this -> createTime ( 0 , 0 , $ seconds ) ; } return parent :: max ( $ callback ) ; }
Returns the major time
@param callable|null $callback
@return \WallaceMaxters\Timer\Time | mixed
Returns the major time