本文整理匯總了PHP中TransformCore\PHE\HayApi\PersistenceBundle\Entity\Questionnaire::isCompleted方法的典型用法代碼示例。如果您正苦於以下問題:PHP Questionnaire::isCompleted方法的具體用法?PHP Questionnaire::isCompleted怎麽用?PHP Questionnaire::isCompleted使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TransformCore\PHE\HayApi\PersistenceBundle\Entity\Questionnaire
的用法示例。
在下文中一共展示了Questionnaire::isCompleted方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addSignedInCompletedRecords
/**
* @param Questionnaire $questionnaire
* @param Document $document
*/
protected function addSignedInCompletedRecords(Questionnaire $questionnaire, Document &$document)
{
if (true === $questionnaire->isCompleted() && true === $questionnaire->getPerson()->isSignedUp()) {
$document->addRecord(new Record($questionnaire, $this->getContainer()->get('translator')));
}
$this->updateQuestionnaireAddressAndStatus($questionnaire);
}
示例2: extractResultsNarrative
/**
* @param Questionnaire $questionnaire
* @param TranslatorInterface $translator
* @return array
*/
public static function extractResultsNarrative(Questionnaire $questionnaire, TranslatorInterface $translator)
{
if (true === $questionnaire->isCompleted()) {
self::prepareResultsNarrative($questionnaire, $translator);
}
return self::$resultsNarrative;
}
示例3: testCompletedSectionsButNoQuestionnaireDate
public function testCompletedSectionsButNoQuestionnaireDate()
{
$this->instance->getDrinking()->setCompletedDate(new \DateTime());
$this->instance->getEating()->setCompletedDate(new \DateTime());
$this->instance->getMoving()->setCompletedDate(new \DateTime());
$this->instance->getSmoking()->setCompletedDate(new \DateTime());
$this->assertTrue($this->instance->isCompleted());
}
示例4: calculateScore
/**
* @inheritDoc
*/
public function calculateScore(Questionnaire $questionnaire)
{
if (true === $questionnaire->isCompleted()) {
$score = $this->generateScore($questionnaire);
$normalisedScore = $this->normaliseScoreToTen($score);
$this->generateRag($normalisedScore);
}
return $this->getRag();
}
示例5: isSatisfiedBy
/**
* @inheritDoc
*/
public static function isSatisfiedBy(Questionnaire $questionnaire)
{
return $questionnaire->isCompleted();
}