| @@ -27,7 +27,6 @@ | ||
| 27 | 27 | /** | 
| 28 | 28 | * Compile a variable to an SQL statement over a named table. | 
| 29 | 29 | * | 
| 30 | - * @param string $name | |
| 31 | 30 | * @param Vars\Variable $var | 
| 32 | 31 | * @param bool $negate | 
| 33 | 32 | * @return string|CompositeExpression | 
| @@ -21,8 +21,20 @@ discard block | ||
| 21 | 21 | // Naming | 
| 22 | 22 | // | 
| 23 | 23 | // Get the names of the different tables used by database. | 
| 24 | + | |
| 25 | + /** | |
| 26 | + * @return string | |
| 27 | + */ | |
| 24 | 28 | public function entity_table(); | 
| 29 | + | |
| 30 | + /** | |
| 31 | + * @return string | |
| 32 | + */ | |
| 25 | 33 | public function reference_table(); | 
| 34 | + | |
| 35 | + /** | |
| 36 | + * @return string | |
| 37 | + */ | |
| 26 | 38 | public function relations_table(); | 
| 27 | 39 | |
| 28 | 40 | /** | 
| @@ -35,8 +47,7 @@ discard block | ||
| 35 | 47 | /** | 
| 36 | 48 | * Compile a variable to an SQL statement over a named table. | 
| 37 | 49 | * | 
| 38 | - * @param string $name | |
| 39 | - * @param Vars\Variable $var | |
| 50 | + * @param Variable $var | |
| 40 | 51 | * @param bool $negate | 
| 41 | 52 | * @return string|CompositeExpression | 
| 42 | 53 | */ | 
| @@ -18,6 +18,10 @@ | ||
| 18 | 18 | */ | 
| 19 | 19 | protected $relation; | 
| 20 | 20 | |
| 21 | + /** | |
| 22 | + * @param string $name | |
| 23 | + * @param string $mode | |
| 24 | + */ | |
| 21 | 25 |      public function __construct(Def\RuleDefinitionRT $rt, $name, $mode, Rules\Relation $relation) { | 
| 22 | 26 | parent::__construct($rt, $name, $mode); | 
| 23 | 27 | $this->relation = $relation; | 
| @@ -185,7 +185,7 @@ | ||
| 185 | 185 | /** | 
| 186 | 186 | * Announce what the current variable is atm. | 
| 187 | 187 | * | 
| 188 | - * @param Variables\Variable $var | |
| 188 | + * @param Variable $var | |
| 189 | 189 | */ | 
| 190 | 190 |      public function current_var_is(Variable $var) { | 
| 191 | 191 |          assert('$this->current_var_name !== null'); | 
| @@ -78,6 +78,7 @@ | ||
| 78 | 78 | |
| 79 | 79 | /** | 
| 80 | 80 | * @inheritdoc | 
| 81 | + * @param string $path | |
| 81 | 82 | */ | 
| 82 | 83 |      public function index_file($path) { | 
| 83 | 84 |          if ($this->insert === null) { | 
| @@ -48,6 +48,9 @@ discard block | ||
| 48 | 48 | */ | 
| 49 | 49 | private $arguments; | 
| 50 | 50 | |
| 51 | + /** | |
| 52 | + * @param string $mode | |
| 53 | + */ | |
| 51 | 54 |      public function __construct($mode, Variable $subject, Schema $schema, array $arguments) { | 
| 52 | 55 |          assert('in_array($mode, self::$modes)'); | 
| 53 | 56 | $schema->check_arguments($arguments); | 
| @@ -73,7 +76,7 @@ discard block | ||
| 73 | 76 | /** | 
| 74 | 77 | * Definition of the entities this rule was defined for. | 
| 75 | 78 | * | 
| 76 | - * @return Vars\Variable | |
| 79 | + * @return Variable | |
| 77 | 80 | */ | 
| 78 | 81 |      public function subject() { | 
| 79 | 82 | return $this->subject; |