public function getQuestion($uuid)
    {
        $found = null;
        foreach ($this->stepQuestions as $stepQuestion) {
            if ($stepQuestion->getQuestion()->getUuid() === $uuid) {
                $found = $stepQuestion->getQuestion();
                break;
            }
        }

        return $found;
    }
public function getQuestion($uuid)
    {
        $found = null;
        foreach ($this->stepQuestions as $stepQuestion) {
            if ($stepQuestion->getQuestion()->getUuid() === $uuid) {
                $found = $stepQuestion->getQuestion();
                break;
            }
        }

        return $found;
    }
public function getQuestion ( $ uuid ) { $ found = null ; foreach ( $ this -> stepQuestions as $ stepQuestion ) { if ( $ stepQuestion -> getQuestion ( ) -> getUuid ( ) === $ uuid ) { $ found = $ stepQuestion -> getQuestion ( ) ; break ; } } return $ found ; }
Gets a question by its uuid.

@param string $uuid

@return Item|null
Gets a question by its uuid .