2018-08-17 21:02:50 +00:00
|
|
|
<?php
|
2022-12-21 18:03:08 +00:00
|
|
|
|
2022-12-03 18:01:45 +00:00
|
|
|
/* Flatrr | https://github.com/jobyone/flatrr | MIT License */
|
2022-12-21 18:03:08 +00:00
|
|
|
|
2018-08-17 22:09:45 +00:00
|
|
|
namespace Flatrr;
|
2018-08-17 21:02:50 +00:00
|
|
|
|
|
|
|
class FlatArray implements FlatArrayInterface
|
|
|
|
{
|
2020-06-23 15:02:47 +00:00
|
|
|
use FlatArrayTrait;
|
2018-08-17 21:02:50 +00:00
|
|
|
|
2022-12-03 18:30:34 +00:00
|
|
|
/**
|
2022-12-21 18:03:08 +00:00
|
|
|
* @param null|array<string|mixed> $data
|
|
|
|
* @return void
|
2022-12-03 18:30:34 +00:00
|
|
|
*/
|
|
|
|
public function __construct(null|array $data = null)
|
2018-08-17 21:02:50 +00:00
|
|
|
{
|
|
|
|
$this->merge($data);
|
|
|
|
}
|
|
|
|
}
|