@@ -210,6 +210,7 @@ discard block |
||
| 210 | 210 | // IMPLEMENTATION OF Parser |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | + * @param string $source |
|
| 213 | 214 | * @return Ruleset |
| 214 | 215 | */ |
| 215 | 216 | public function parse($source) { |
@@ -270,6 +271,7 @@ discard block |
||
| 270 | 271 | |
| 271 | 272 | /** |
| 272 | 273 | * @param string |
| 274 | + * @param string $content |
|
| 273 | 275 | * @return string |
| 274 | 276 | */ |
| 275 | 277 | protected function trim_explanation($content) { |
@@ -338,7 +340,7 @@ discard block |
||
| 338 | 340 | /** |
| 339 | 341 | * Fetch a rule schema and its arguments from the stream. |
| 340 | 342 | * |
| 341 | - * @return array (R\Schema, array) |
|
| 343 | + * @return R\Schema (R\Schema, array) |
|
| 342 | 344 | */ |
| 343 | 345 | protected function schema() { |
| 344 | 346 | $t = $this->current_symbol(); |
@@ -126,6 +126,9 @@ |
||
| 126 | 126 | ); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param boolean $negate |
|
| 131 | + */ |
|
| 129 | 132 | protected function regexp_source_filter($regexp, $negate) { |
| 130 | 133 | assert('is_string($regexp)'); |
| 131 | 134 | assert('is_bool($negate)'); |
@@ -11,10 +11,8 @@ |
||
| 11 | 11 | namespace Lechimp\Dicto\Rules; |
| 12 | 12 | |
| 13 | 13 | use Lechimp\Dicto\Analysis\Index; |
| 14 | -use Lechimp\Dicto\Analysis\Violation; |
|
| 15 | 14 | use Lechimp\Dicto\Definition\ArgumentParser; |
| 16 | 15 | use Lechimp\Dicto\Indexer\ListenerRegistry; |
| 17 | -use Lechimp\Dicto\Graph\Node; |
|
| 18 | 16 | use Lechimp\Dicto\Graph\Relation; |
| 19 | 17 | |
| 20 | 18 | /** |
@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | return $max_id; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param integer $id |
|
| 63 | + */ |
|
| 61 | 64 | protected function serialize_relations(Graph\IndexDB $index, $id) { |
| 62 | 65 | foreach ($index->nodes() as $node) { |
| 63 | 66 | foreach ($node->relations() as $relation) { |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | } |
| 95 | 98 | } |
| 96 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $key |
|
| 102 | + */ |
|
| 97 | 103 | protected function insert_property($entity_id, $key, $value) { |
| 98 | 104 | $is_entity = false; |
| 99 | 105 | if ($value instanceof Graph\Node) { |
@@ -140,6 +146,9 @@ discard block |
||
| 140 | 146 | } |
| 141 | 147 | |
| 142 | 148 | |
| 149 | + /** |
|
| 150 | + * @param Graph\IndexDB $index |
|
| 151 | + */ |
|
| 143 | 152 | protected function select_properties($id, $index) { |
| 144 | 153 | $id = (int)$id; |
| 145 | 154 | $res = $this->connection->executeQuery |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | use Lechimp\Dicto\Graph; |
| 14 | 14 | use Doctrine\DBAL\Schema; |
| 15 | -use Doctrine\DBAL\Types\Type; |
|
| 16 | 15 | use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer; |
| 17 | -use Doctrine\DBAL\Statement; |
|
| 18 | 16 | |
| 19 | 17 | class IndexDB extends DB { |
| 20 | 18 | /** |