1 | <?php |
||
8 | class Symbols |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $symbols; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $priority; |
||
19 | |||
20 | /** |
||
21 | * @param string $symbols |
||
22 | * @param int $priority |
||
23 | */ |
||
24 | 8 | public function __construct ( $symbols, $priority = 100 ) |
|
29 | |||
30 | /** |
||
31 | * @param $symbols |
||
32 | * |
||
33 | * @return bool |
||
34 | * |
||
35 | * @throws InvalidArgumentException |
||
36 | */ |
||
37 | 8 | protected function setSymbols ( $symbols ) |
|
45 | |||
46 | /** |
||
47 | * @param int $priority |
||
48 | * |
||
49 | * @return bool |
||
50 | * |
||
51 | * @throws InvalidArgumentException |
||
52 | */ |
||
53 | 7 | protected function setPriority ( $priority ) |
|
61 | |||
62 | /** |
||
63 | * @return int |
||
64 | */ |
||
65 | 3 | public function getPriority () |
|
69 | |||
70 | /** |
||
71 | * @param MethodInterface $method |
||
72 | * |
||
73 | * @return string |
||
74 | */ |
||
75 | 2 | public function getRandomSymbol ( MethodInterface $method = null ) |
|
85 | } |
||
86 |