alexander-emelyanov/opteck-api-client

View on GitHub
src/Entity.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Opteck;

class Entity
{
    public function __construct($data)
    {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->{$key} = $value;
            }
        }
    }
}