public function setMinTime(QtiDuration $minTime = null)
    {
        // Prevent to get 0s durations stored.
        if (is_null($minTime) === false && $minTime->getSeconds(true) === 0) {
            $minTime = null;
        }

        $this->minTime = $minTime;
    }
public function setMinTime(QtiDuration $minTime = null)
    {
        // Prevent to get 0s durations stored.
        if (is_null($minTime) === false && $minTime->getSeconds(true) === 0) {
            $minTime = null;
        }

        $this->minTime = $minTime;
    }
public function setMinTime ( QtiDuration $ minTime = null ) { // Prevent to get 0s durations stored. if ( is_null ( $ minTime ) === false && $ minTime -> getSeconds ( true ) === 0 ) { $ minTime = null ; } $ this -> minTime = $ minTime ; }
Set the minimum time.

@param \qtism\common\datatypes\Duration $minTime A Duration object or null if unlimited.
Set the minimum time .