public function beforePayeeBgcNumber(Node $node): void
    {
        if (!$this->payeeBgcNr) {
            $this->payeeBgcNr = (string)$node->getValue();
        }

        if ($node->getValue() != $this->payeeBgcNr) {
            $this->getErrorObject()->addError(
                "Non-matching payee BGC customer numbers (expecting: %s, found: %s) on line %s",
                $this->payeeBgcNr,
                (string)$node->getValue(),
                (string)$node->getLineNr()
            );
        }
    }
public function beforePayeeBgcNumber(Node $node): void
    {
        if (!$this->payeeBgcNr) {
            $this->payeeBgcNr = (string)$node->getValue();
        }

        if ($node->getValue() != $this->payeeBgcNr) {
            $this->getErrorObject()->addError(
                "Non-matching payee BGC customer numbers (expecting: %s, found: %s) on line %s",
                $this->payeeBgcNr,
                (string)$node->getValue(),
                (string)$node->getLineNr()
            );
        }
    }
public function beforePayeeBgcNumber ( Node $ node ) : void { if ( ! $ this -> payeeBgcNr ) { $ this -> payeeBgcNr = ( string ) $ node -> getValue ( ) ; } if ( $ node -> getValue ( ) != $ this -> payeeBgcNr ) { $ this -> getErrorObject ( ) -> addError ( "Non-matching payee BGC customer numbers (expecting: %s, found: %s) on line %s" , $ this -> payeeBgcNr , ( string ) $ node -> getValue ( ) , ( string ) $ node -> getLineNr ( ) ) ; } }
Validate payee BGC customer number
Validate payee BGC customer number