for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\Yaroc\Examples;
use drupol\Yaroc\Plugin\Method\GenerateIntegers;
/**
* Class Dice.
*/
class Dice extends BaseExample
{
* @throws \Http\Client\Exception
*
* @return bool|mixed
public function roll()
$parameters = ['n' => 2, 'min' => 1, 'max' => 6];
$generateIntegers = (new GenerateIntegers($this->getHttpClient()))
->withParameters($parameters);
return $this->getRandomOrgAPI()->getData($generateIntegers);
}