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