@@ -65,22 +65,22 @@ interface ITable extends IJsonSerializable
6565 public const JSON_MEMBERS = 'members ' ;
6666
6767 /**
68- * Table constructor.
69- * @param string $name API table name.
70- * @param string $direction Either input or output or table
71- * @param bool $isOptional Is the API table optional?
72- * @param IMember[] $members Array of members as columns of the table.
68+ * Initialize this class from an array.
69+ * @param array<string, string|bool|array<string, string>> $array Array containing the properties of this class.
7370 * @throws IInvalidArgumentException
7471 */
75- public function __construct (string $ name , string $ direction , bool $ isOptional , array $ members );
72+ public function __construct (array $ array );
7673
7774 /**
78- * Create an instance of this class from an array.
79- * @param array<string, string|bool|array<string, string>> $array Array containing the properties of this class.
75+ * Create an instance of this class.
76+ * @param string $name API table name.
77+ * @param string $direction Either input or output or table
78+ * @param bool $isOptional Is the API table optional?
79+ * @param IMember[] $members Array of members as columns of the table.
8080 * @return ITable
8181 * @throws IInvalidArgumentException
8282 */
83- public static function create (array $ array ): ITable ;
83+ public static function create (string $ name , string $ direction , bool $ isOptional , array $ members ): ITable ;
8484
8585 /**
8686 * The PHP type of the element.
0 commit comments