@@ -51,6 +51,10 @@ |
||
| 51 | 51 | /** @var integer */ |
| 52 | 52 | private $column; |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param integer $line |
|
| 56 | + * @param integer $column |
|
| 57 | + */ |
|
| 54 | 58 | public function __construct($type, $line, $column, $data = null) |
| 55 | 59 | { |
| 56 | 60 | $this->type = $type; |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | private $typesList; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param \Youshido\GraphQL\Schema\AbstractSchema $contextObject |
|
| 28 | + */ |
|
| 26 | 29 | public function __construct(array $configData, $contextObject = null, $finalClass = false) |
| 27 | 30 | { |
| 28 | 31 | $this->typesList = new SchemaTypesList(); |
@@ -78,7 +81,7 @@ discard block |
||
| 78 | 81 | } |
| 79 | 82 | |
| 80 | 83 | /** |
| 81 | - * @param $query AbstractObjectType |
|
| 84 | + * @param ObjectType $query AbstractObjectType |
|
| 82 | 85 | * |
| 83 | 86 | * @return SchemaConfig |
| 84 | 87 | */ |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | return $this->arguments; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $name |
|
| 103 | + */ |
|
| 101 | 104 | public function removeArgument($name) |
| 102 | 105 | { |
| 103 | 106 | if ($this->hasArgument($name)) { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @param $name |
|
| 93 | + * @param string $name |
|
| 94 | 94 | * |
| 95 | 95 | * @return Field |
| 96 | 96 | */ |
@@ -122,6 +122,9 @@ discard block |
||
| 122 | 122 | return $this->fields; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $name |
|
| 127 | + */ |
|
| 125 | 128 | public function removeField($name) |
| 126 | 129 | { |
| 127 | 130 | if ($this->hasField($name)) { |
@@ -223,6 +223,9 @@ discard block |
||
| 223 | 223 | return $this; |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | + /** |
|
| 227 | + * @param string $name |
|
| 228 | + */ |
|
| 226 | 229 | public function getVariable($name) |
| 227 | 230 | { |
| 228 | 231 | return $this->hasVariable($name) ? $this->variables[$name] : null; |
@@ -266,7 +269,7 @@ discard block |
||
| 266 | 269 | } |
| 267 | 270 | |
| 268 | 271 | /** |
| 269 | - * @return array|VariableReference[] |
|
| 272 | + * @return VariableReference[] |
|
| 270 | 273 | */ |
| 271 | 274 | public function getVariableReferences() |
| 272 | 275 | { |