public function getQuestion($uuid)
    {
        foreach ($this->steps as $step) {
            $questions = $step->getQuestions();
            foreach ($questions as $question) {
                if ($question->getUuid() === $uuid) {
                    return $question;
                }
            }
        }

        return null;
    }
public function getQuestion($uuid)
    {
        foreach ($this->steps as $step) {
            $questions = $step->getQuestions();
            foreach ($questions as $question) {
                if ($question->getUuid() === $uuid) {
                    return $question;
                }
            }
        }

        return null;
    }
public function getQuestion ( $ uuid ) { foreach ( $ this -> steps as $ step ) { $ questions = $ step -> getQuestions ( ) ; foreach ( $ questions as $ question ) { if ( $ question -> getUuid ( ) === $ uuid ) { return $ question ; } } } return null ; }
Gets a question by its UUID.

@param string $uuid

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