Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | public function importProperty($blacklist) |
||
51 | { |
||
52 | $document = $this->document; |
||
53 | $methods = get_class_methods($document); |
||
54 | foreach($methods as $method){ |
||
55 | if(0 === strpos($method,'get') && !in_array($method,$blacklist)){ |
||
56 | $value = call_user_func(array($document,$method)); |
||
57 | if(!is_null($value)){ |
||
58 | $setter = 'set'.substr($method,3); |
||
59 | call_user_func(array($this,$setter),$value); |
||
60 | } |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 | |||
82 | } |