예제 #1
0
 /**
  * @param MetadataProcessor $processor
  * @param array $data
  */
 public function __construct(MetadataProcessor $processor, array $data)
 {
     /** Clone the array to work around a kink in php7 that modifies the argument by reference */
     $this->_data = $processor->process($this->_arrayClone($data));
     $this->_source = $data;
 }
예제 #2
0
 /**
  * @param MetadataProcessor $processor
  * @param array $data
  */
 public function __construct(MetadataProcessor $processor, array $data)
 {
     $this->_data = $processor->process($data);
     $this->_source = $data;
 }