PluginProbe
Tamara Checkout / trunk
Tamara Checkout vtrunk
1.9.9.23 1.9.9.22 1.9.9.20 trunk 1.0.13 1.7.4 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 1.9.9.1 1.9.9.11 1.9.9.12 1.9.9.13 1.9.9.14 1.9.9.15 1.9.9.16 1.9.9.17 1.9.9.2 1.9.9.3 1.9.9.4 1.9.9.5 All 29 releases
tamara-checkout / src / Traits / ConfigTrait.php

ConfigTrait.php in Tamara Checkout trunk, at src/Traits/ConfigTrait.php

22 lines 350 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace Tamara\Wp\Plugin\Traits;
5
6
7 trait ConfigTrait
8 {
9
10 /**
11 * @param array $config
12 */
13 public function bindConfig($config)
14 {
15 foreach ((array)$config as $attrName => $attrValue) {
16 if (property_exists($this, $attrName)) {
17 $this->$attrName = $attrValue;
18 }
19 }
20 }
21 }
22