Closed roberto-butti closed 1 year ago
I think personally for this we should not call it arr()
since it implies that it's related to the Arr
object. I think a more fitting name might be toArray()
.
We can then use this to cover the entire table and all of the Arr
objects inside of it to an array based format.
We could even then look in the future to adding something like toJson()
on the Table to get the information encoded.
I think personally for this we should not call it
arr()
since it implies that it's related to theArr
object. I think a more fitting name might betoArray()
.We can then use this to cover the entire table and all of the
Arr
objects inside of it to an array based format.We could even then look in the future to adding something like
toJson()
on the Table to get the information encoded.
totally agree on the naming. I changed the title and the first comment of the issue.
What
Add new method to Table class, in src/Table.php file
Description
The
toArray()
method returns a bidimensional PHP array from Table class.In
Table
class, you could have something like this:Checklist