Commit 07dace55 authored by Tomas Lang's avatar Tomas Lang

Restriction: assign method

parent 88e121b9
...@@ -161,6 +161,18 @@ abstract class AbstractRestriction ...@@ -161,6 +161,18 @@ abstract class AbstractRestriction
/**
* @param array $properties
*/
public function assign(array $properties)
{
foreach ($properties as $property => $value) {
$this->__set($property, $value);
}
}
/** /**
* @param \DibiFluent $statement * @param \DibiFluent $statement
* @param string|null $flag * @param string|null $flag
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment