public function of($type, $modifier = TransactionModifier::NONE)
    {
        if (!array_key_exists($type, $this->rules)) {
            $this->rules[$type] = [];
        }

        $target = new ValidationTarget($this, $type, $modifier);
        $this->rules[$type][] = $target;
        return $target;
    }
public function of($type, $modifier = TransactionModifier::NONE)
    {
        if (!array_key_exists($type, $this->rules)) {
            $this->rules[$type] = [];
        }

        $target = new ValidationTarget($this, $type, $modifier);
        $this->rules[$type][] = $target;
        return $target;
    }
public function of ( $ type , $ modifier = TransactionModifier :: NONE ) { if ( ! array_key_exists ( $ type , $ this -> rules ) ) { $ this -> rules [ $ type ] = [ ] ; } $ target = new ValidationTarget ( $ this , $ type , $ modifier ) ; $ this -> rules [ $ type ] [ ] = $ target ; return $ target ; }
Creates a new `ValidationTarget` for the given
transaction type mask.

@param TransactionType|int $type Mask of transaction types
@param TransactionModifier|int $modifier Transaction modifier

@return ValidationTarget
Creates a new ValidationTarget for the given transaction type mask .