public function __construct(Statement $statement) { $data = array(); foreach ((array) $this as $key => $value) { $data[$key] = $value; unset($this->{$key}); } foreach ($statement->normalizeRow($data) as $key => $value) { $this->{$key} = $value; } }
public function __construct(Statement $statement) { $statement->normalizeRow($this); }
Nette\ArrayHash{function __construct(Statement$statement){$statement->normalizeRow($this);}function