function persist(AbstractStorage $storage, AssessmentTestSession $session, &$average = null) { $start = microtime(); $storage->persist($session); if (is_null($average) === false) { spentTime($start, microtime(), $average); } }
/** * Create a new AbstractQtiBinaryStorage. * * @param \qtism\runtime\tests\AbstractSessionManager $factory * @param \qtism\runtime\storage\binary\BinaryAssessmentTestSeeker $seeker * @throws \InvalidArgumentException If $assessmentTest does not implement the Document interface. */ public function __construct(AbstractSessionManager $manager, BinaryAssessmentTestSeeker $seeker) { parent::__construct($manager); $this->setSeeker($seeker); }