@@ 47-59 (lines=13) @@ | ||
44 | /** |
|
45 | * {@inheritdoc} |
|
46 | */ |
|
47 | public function setAll($items) |
|
48 | { |
|
49 | $this->validateTraversable($items); |
|
50 | ||
51 | foreach ($items as $key => $item) { |
|
52 | if (is_array($item)) { |
|
53 | $item = new static($item); |
|
54 | } |
|
55 | $this->set($key, $item); |
|
56 | } |
|
57 | ||
58 | return $this; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * {@inheritdoc} |
@@ 55-67 (lines=13) @@ | ||
52 | /** |
|
53 | * {@inheritdoc} |
|
54 | */ |
|
55 | public function setAll($items) |
|
56 | { |
|
57 | $this->validateTraversable($items); |
|
58 | ||
59 | foreach ($items as $key => $item) { |
|
60 | if (is_array($item)) { |
|
61 | $item = new static($item); |
|
62 | } |
|
63 | $this->set($key, $item); |
|
64 | } |
|
65 | ||
66 | return $this; |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * {@inheritdoc} |