changeRule() public method

public changeRule ( string $rule, array $newFormat )
$rule string
$newFormat array
Example #1
0
 /**
  * @param array  $newFormat
  * @param string $rule
  * @return $this
  * @throws \JBZoo\SimpleTypes\Exception
  */
 public function changeRule($rule, array $newFormat)
 {
     $rule = $this->_parser->cleanRule($rule);
     $this->_formatter->changeRule($rule, $newFormat);
     $this->log('Rule "' . $rule . '" changed');
     return $this;
 }