1 | <?php |
||
13 | class Dicto { |
||
14 | private function __construct() {} |
||
15 | |||
16 | static private $rt = null; |
||
17 | |||
18 | /** |
||
19 | * Discard the current definition if there is any. |
||
20 | */ |
||
21 | 288 | public static function discardDefinition() { |
|
24 | |||
25 | /** |
||
26 | * Start the definition of a new ruleset. |
||
27 | * |
||
28 | * @throws \RuntimeException if definition was already started |
||
29 | */ |
||
30 | 287 | public static function startDefinition() { |
|
36 | |||
37 | /** |
||
38 | * Discard the current definition if there is any. |
||
39 | * |
||
40 | * @throws \RuntimeException if definition was not started or already ended |
||
41 | * @return array containing Definition\RuleSet and config-array |
||
42 | */ |
||
43 | 281 | public static function endDefinition() { |
|
52 | |||
53 | /** |
||
54 | * Define a only-rule. |
||
55 | * |
||
56 | * @throws \RuntimeException if previous variable declaration has not finished |
||
57 | * @throws \RuntimeException |
||
58 | * @return Fluid\Only |
||
59 | */ |
||
60 | 36 | public static function only() { |
|
67 | |||
68 | /** |
||
69 | * Define the configuration for the project according to App\Config. |
||
70 | * |
||
71 | * @param array |
||
72 | * @return null |
||
73 | */ |
||
74 | 3 | public static function configuration(array $config) { |
|
77 | |||
78 | /** |
||
79 | * Define a new variable or reference an already defined variable to define |
||
80 | * a rule. |
||
81 | * |
||
82 | * @throws \InvalidArgumentException if $arguments are passed |
||
83 | * @throws \RuntimeException if previous variable declaration was not finished |
||
84 | * @throws \RuntimeException if definition was not started |
||
85 | * @return NewVar|RuleVar |
||
86 | */ |
||
87 | 284 | public static function __callStatic($name, $arguments) { |
|
100 | } |
||
101 | |||
102 |