plugin/exo/Entity/ItemType/BooleanQuestion.php
public function getChoice($uuid)
    {
        $found = null;
        foreach ($this->choices as $choice) {
            if ($choice->getUuid() === $uuid) {
                $found = $choice;
                break;
            }
        }

        return $found;
    }
public function getChoice($uuid)
    {
        $found = null;
        foreach ($this->choices as $choice) {
            if ($choice->getUuid() === $uuid) {
                $found = $choice;
                break;
            }
        }

        return $found;
    }
public function getChoice ( $ uuid ) { $ found = null ; foreach ( $ this -> choices as $ choice ) { if ( $ choice -> getUuid ( ) === $ uuid ) { $ found = $ choice ; break ; } } return $ found ; }
Get a choice by its uuid.

@param $uuid

@return BooleanChoice|null
Get a choice by its uuid .