1 | <?php |
||
13 | class Dice extends BaseType implements TypeInterface |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | static protected $requiredParams = ['value']; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | static protected $map = [ |
||
28 | 'value' => true |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * Value of the dice, 1-6 |
||
33 | * |
||
34 | * @var int |
||
35 | */ |
||
36 | protected $value; |
||
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | */ |
||
41 | public function getValue() |
||
45 | |||
46 | /** |
||
47 | * @param int $value |
||
48 | */ |
||
49 | public function setValue($value) |
||
53 | } |