src/Bond/Database/Enum.php
public function getRandomValue( $name )
     {
        if( !isset( $this->enums[$name] ) ) {
            throw new UnknownEnumException($name);
        }
        return $this->enums[$name][array_rand($this->enums[$name])];
     }
public function getRandomValue( $name )
     {
        if( !isset( $this->enums[$name] ) ) {
            throw new UnknownEnumException($name);
        }
        return $this->enums[$name][array_rand($this->enums[$name])];
     }
public function getRandomValue ( $ name ) { if ( ! isset ( $ this -> enums [ $ name ] ) ) { throw new UnknownEnumException ( $ name ) ; } return $ this -> enums [ $ name ] [ array_rand ( $ this -> enums [ $ name ] ) ] ; }
Get a random value from a enum. Primarily used by the import script
@return string
Get a random value from a enum . Primarily used by the import script