@@ -10,12 +10,12 @@ abstract class Binding
1010 protected $ property ;
1111
1212 /**
13- * @var string
13+ * @var ? string
1414 */
1515 protected $ jsonField ;
1616
1717 /**
18- * @var string
18+ * @var ? string
1919 */
2020 protected $ type ;
2121
@@ -27,10 +27,10 @@ abstract class Binding
2727 /**
2828 * FieldBinding constructor.
2929 *
30- * @param string $property the property to bind to
31- * @param string $jsonField the json field
32- * @param string $type the desired type of the property
33- * @param bool $isRequired defines if the field value is required during decoding
30+ * @param string $property the property to bind to
31+ * @param ? string $jsonField the json field
32+ * @param ? string $type the desired type of the property
33+ * @param bool $isRequired defines if the field value is required during decoding
3434 */
3535 public function __construct ($ property , $ jsonField , $ type , $ isRequired = false )
3636 {
@@ -42,8 +42,6 @@ public function __construct($property, $jsonField, $type, $isRequired = false)
4242
4343 /**
4444 * validates the given binding data.
45- *
46- * @param mixed $jsonData
4745 */
4846 public function validate (array $ jsonData ): bool
4947 {
@@ -69,7 +67,7 @@ public function jsonField(): string
6967 /**
7068 * executes the defined binding method on the class instance.
7169 *
72- * @param mixed $jsonData
70+ * @param ?array $jsonData
7371 * @param Property $property the class instance to bind to
7472 *
7573 * @return mixed
0 commit comments