public final function __construct(array $data) { foreach ($data as $key => $value) { $this->{$key} = $value; } }