File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,23 +26,21 @@ public function __construct(Client $client, $code)
26
26
}
27
27
28
28
/**
29
- * Return a single row referring to the code table.
29
+ * Return a list of rows referring to the code of the rows in the table.
30
30
*
31
- * @param $code - The code in the Table we want to pull.
31
+ * @param string $code - The code of the row in the Table we want to pull.
32
32
*
33
- * @return object - the row in the code table.
33
+ * @return array $found - The rows in the code table that match the code passed in .
34
34
*/
35
35
public function getRowByCode ($ code )
36
36
{
37
37
$ found = array ();
38
38
$ codeTable = json_decode ($ this ->client ->get ($ this ->urlBase ()));
39
-
40
39
foreach ($ codeTable ->row as $ row ) {
41
40
if ($ row ->code == $ code ) {
42
41
array_push ($ found ,$ row );
43
42
}
44
43
}
45
-
46
44
return ($ found );
47
45
}
48
46
You can’t perform that action at this time.
0 commit comments