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\Provider;
/**
* Class Dice.
*/
class Dice extends BaseExample
{
* @throws \Http\Client\Exception
*
* @return bool|mixed
public function roll()
$generateIntegers = Provider::withResource('generateIntegers')
->withParameters(['n' => 2, 'min' => 1, 'max' => 6]);
return $this->getRandomOrgAPI()->getData($generateIntegers);
}