Example #1
0
 public function apply(Node $node)
 {
     $attributes = $this->getAll();
     foreach ($attributes as $name => $value) {
         if (is_array($value)) {
             $node->mergeComplexAttributes($name, $value);
         } else {
             $node->setAttribute($name, $value);
         }
     }
 }