@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | trait ArraySerializable |
| 13 | 13 | { |
| 14 | -<<<<<<< HEAD |
|
| 14 | +<< << <<< HEAD |
|
| 15 | 15 | /** |
| 16 | 16 | * Will loop through class properties and try and assign their values to an array of data that will be returned. |
| 17 | 17 | * |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | // Assign the contents of the property to the data array |
| 54 | - $data[$property] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
| 54 | + $data[ $property ] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
@@ -93,14 +93,8 @@ discard block |
||
| 93 | 93 | if( !method_exists( $this, $getter ) ) continue; |
| 94 | 94 | |
| 95 | 95 | // Assign the contents of the property to the data array |
| 96 | - $data[ $property ] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
| 96 | + $data[ $property ] = $object ? $this->$getter()->getArrayCopy() : $this->$getter(); |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - return $data; |
|
| 101 | - } |
|
| 102 | -} |
|
| 103 | ->>>>>>> 6d743af... Simplified getArrayCopy method |
|
| 104 | -======= |
|
| 105 | -} |
|
| 106 | ->>>>>>> e69d8b3... Add unit test making sure the ArraySerializable trait is working well. |
|
| 100 | + return $data |
|
| 107 | 101 | \ No newline at end of file |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function setOwner(ChartInterface $chart) |
| 22 | 22 | { |
| 23 | - $this->owner = $chart; |
|
| 23 | + $this->owner = $chart; |
|
| 24 | 24 | |
| 25 | 25 | return $this; |
| 26 | 26 | } |