Example #1
0
File: Input.php Project: Rovak/zf2
 public function merge(InputInterface $input)
 {
     $this->setAllowEmpty($input->allowEmpty());
     $this->setBreakOnFailure($input->breakOnFailure());
     $this->setErrorMessage($input->getErrorMessage());
     $this->setName($input->getName());
     $this->setRequired($input->isRequired());
     $this->setValue($input->getValue());
     $filterChain = $input->getFilterChain();
     $this->getFilterChain()->merge($filterChain);
     $validatorChain = $input->getValidatorChain();
     $this->getValidatorChain()->merge($validatorChain);
 }