JamesMoss\Flywheel\Document::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( array $data = [] )
$data array An associative array, each key/value pair will be turned into properties on this object.
    public function __construct(array $data = array())
    {
        foreach ($data as $key => $value) {
            $this->{$key} = $value;
        }
    }