@@ -31,6 +31,7 @@ |
||
| 31 | 31 | * Gets or sets the inner value |
| 32 | 32 | * |
| 33 | 33 | * @param integer ...$value |
| 34 | + * @param integer[] $value |
|
| 34 | 35 | * @return integer |
| 35 | 36 | */ |
| 36 | 37 | public function value(...$value) |
@@ -688,12 +688,12 @@ |
||
| 688 | 688 | } |
| 689 | 689 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
| 690 | 690 | $msg = $counter . " fields not null. Need minimum of ".$this->gExpressionMinimum. ": " |
| 691 | - . get_class($this); |
|
| 691 | + . get_class($this); |
|
| 692 | 692 | return false; |
| 693 | 693 | } |
| 694 | 694 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
| 695 | 695 | $msg = $counter . " fields not null. Need maximum of ".$this->gExpressionMaximum. ": " |
| 696 | - . get_class($this); |
|
| 696 | + . get_class($this); |
|
| 697 | 697 | return false; |
| 698 | 698 | } |
| 699 | 699 | } |
@@ -687,12 +687,12 @@ discard block |
||
| 687 | 687 | $counter += isset($this->$name) ? 1 : 0; |
| 688 | 688 | } |
| 689 | 689 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
| 690 | - $msg = $counter . " fields not null. Need minimum of ".$this->gExpressionMinimum. ": " |
|
| 690 | + $msg = $counter . " fields not null. Need minimum of " . $this->gExpressionMinimum . ": " |
|
| 691 | 691 | . get_class($this); |
| 692 | 692 | return false; |
| 693 | 693 | } |
| 694 | 694 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
| 695 | - $msg = $counter . " fields not null. Need maximum of ".$this->gExpressionMaximum. ": " |
|
| 695 | + $msg = $counter . " fields not null. Need maximum of " . $this->gExpressionMaximum . ": " |
|
| 696 | 696 | . get_class($this); |
| 697 | 697 | return false; |
| 698 | 698 | } |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | return false; |
| 726 | 726 | } |
| 727 | 727 | if (!$this->isObjectNullOrType($type, $this->$key)) { |
| 728 | - $msg = 'Type mismatch - should be ' .$type. ", is ".get_class($this->$key). ": " . get_class($this); |
|
| 728 | + $msg = 'Type mismatch - should be ' . $type . ", is " . get_class($this->$key) . ": " . get_class($this); |
|
| 729 | 729 | return false; |
| 730 | 730 | } |
| 731 | 731 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | $numParms = count($this->parameter); |
| 143 | - for ($i = 0; $i < $numParms -2; $i++) { |
|
| 143 | + for ($i = 0; $i < $numParms - 2; $i++) { |
|
| 144 | 144 | $outName = $this->parameter[$i]->getName(); |
| 145 | 145 | for ($j = $i + 1; $j < $numParms - 1; $j++) { |
| 146 | 146 | $inName = $this->parameter[$j]->getName(); |
@@ -169,11 +169,11 @@ discard block |
||
| 169 | 169 | // Check Associations to associationSets |
| 170 | 170 | if (count($associationSets) != count($associationNames)) { |
| 171 | 171 | $msg = "we have " . count($associationSets) . "association sets and " . count($associationNames) |
| 172 | - . " associations, they should be the same"; |
|
| 172 | + . " associations, they should be the same"; |
|
| 173 | 173 | } |
| 174 | 174 | if (count($associationNames) * 2 < count($navigationProperties)) { |
| 175 | 175 | $msg = "we have too many navigation properties. should have no more then double the" |
| 176 | - ." number of associations."; |
|
| 176 | + ." number of associations."; |
|
| 177 | 177 | } |
| 178 | 178 | foreach ($associationNames as $associationName => $associationEnds) { |
| 179 | 179 | if (!array_key_exists($associationName, $associationSets)) { |
@@ -188,23 +188,23 @@ discard block |
||
| 188 | 188 | $roles = [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]; |
| 189 | 189 | if (!in_array($associationSets[$associationName][0]->getRole(), $roles)) { |
| 190 | 190 | $msg = "association Set role " . $associationSets[$associationName][0]->getRole() |
| 191 | - . "lacks a matching property in the attached association"; |
|
| 191 | + . "lacks a matching property in the attached association"; |
|
| 192 | 192 | return false; |
| 193 | 193 | } |
| 194 | 194 | if (!in_array($associationSets[$associationName][1]->getRole(), $roles)) { |
| 195 | 195 | $msg = "association Set role " . $associationSets[$associationName][1]->getRole() |
| 196 | - . "lacks a matching property in the attached association"; |
|
| 196 | + . "lacks a matching property in the attached association"; |
|
| 197 | 197 | return false; |
| 198 | 198 | } |
| 199 | 199 | foreach ($navigationProperties[$associationName] as $navProp) { |
| 200 | 200 | if (!in_array($navProp->getToRole(), $roles)) { |
| 201 | 201 | $msg = "Navigation Property Role " . $navProp->getToRole() |
| 202 | - . " lacks a matching Property in the assocation"; |
|
| 202 | + . " lacks a matching Property in the assocation"; |
|
| 203 | 203 | return false; |
| 204 | 204 | } |
| 205 | 205 | if (!in_array($navProp->getFromRole(), $roles)) { |
| 206 | 206 | $msg = "Navigation Property Role " .$navProp->getToRole() |
| 207 | - . " lacks a matching Property in the assocation"; |
|
| 207 | + . " lacks a matching Property in the assocation"; |
|
| 208 | 208 | return false; |
| 209 | 209 | } |
| 210 | 210 | } |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | $numDefaults += $isDefault ? 1 : 0; |
| 148 | 148 | } |
| 149 | 149 | if (1 != $numDefaults) { |
| 150 | - $msg = "Exactly one entityContainer must be set as default container, actually have ".$numDefaults; |
|
| 150 | + $msg = "Exactly one entityContainer must be set as default container, actually have " . $numDefaults; |
|
| 151 | 151 | return false; |
| 152 | 152 | } |
| 153 | 153 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | return false; |
| 204 | 204 | } |
| 205 | 205 | if (!in_array($navProp->getFromRole(), $roles)) { |
| 206 | - $msg = "Navigation Property Role " .$navProp->getToRole() |
|
| 206 | + $msg = "Navigation Property Role " . $navProp->getToRole() |
|
| 207 | 207 | . " lacks a matching Property in the assocation"; |
| 208 | 208 | return false; |
| 209 | 209 | } |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private $type = null; |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Gets as type |
|
| 37 | - * |
|
| 38 | - * @return string |
|
| 39 | - */ |
|
| 35 | + /** |
|
| 36 | + * Gets as type |
|
| 37 | + * |
|
| 38 | + * @return string |
|
| 39 | + */ |
|
| 40 | 40 | public function getType() |
| 41 | 41 | { |
| 42 | 42 | return $this->type; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function __construct() |
| 19 | 19 | { |
| 20 | - $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0 ; |
|
| 20 | + $this->gExpressionMaximum = (0 == count($this->parameters)) ? 1 : 0; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | $msg = 'Type name cannot be null or empty'; |
| 159 | 159 | return false; |
| 160 | 160 | } |
| 161 | - if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping>isOK($msg)) { |
|
| 161 | + if (null != $this->modificationFunctionMapping && !$this->modificationFunctionMapping > isOK($msg)) { |
|
| 162 | 162 | return false; |
| 163 | 163 | } |
| 164 | 164 | if (!$this->isValidArray( |
@@ -36,6 +36,7 @@ |
||
| 36 | 36 | * Gets or sets the inner value |
| 37 | 37 | * |
| 38 | 38 | * @param string ...$value |
| 39 | + * @param string[] $value |
|
| 39 | 40 | * @return string |
| 40 | 41 | */ |
| 41 | 42 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | * Gets or sets the inner value |
| 32 | 32 | * |
| 33 | 33 | * @param \DateTime ...$value |
| 34 | + * @param \DateTime[] $value |
|
| 34 | 35 | * @return \DateTime |
| 35 | 36 | */ |
| 36 | 37 | public function value(...$value) |