Notation¶
| Qualified name: | Ouxsoft\LuckByDice\Notation |
|---|---|
| Implements: | NotationInterface |
-
class
Notation¶ -
-
public
__toString() -> Notation::get()¶ Returns: Notation::get()–
-
public
get() → string¶ Get cup notation
Returns: string – “1d4+3*2,1d5,d5,10d5”
-
public
getSeparator() → string¶ Returns: string –
-
public
set(string $notation)¶ Set cup notation
Parameters: - $notation (string) –
-
public
setSeparator($separator)¶ Parameters: - $separator –
-
private
decode(string $expression)¶ Parameters: - $expression (string) –
-
private
encode() → string¶ Returns: string –
-
public