public function beforePayeeBankgiro(Node $node): void
    {
        if (!$this->payeeBg) {
            $this->payeeBg = (string)$node->getValueFrom('Number');
        }

        if ($node->getValueFrom('Number') != $this->payeeBg) {
            $this->getErrorObject()->addError(
                "Non-matching payee bankgiro numbers (expecting: %s, found: %s) on line %s",
                $this->payeeBg,
                (string)$node->getValueFrom('Number'),
                (string)$node->getLineNr()
            );
        }
    }
public function beforePayeeBankgiro(Node $node): void
    {
        if (!$this->payeeBg) {
            $this->payeeBg = (string)$node->getValueFrom('Number');
        }

        if ($node->getValueFrom('Number') != $this->payeeBg) {
            $this->getErrorObject()->addError(
                "Non-matching payee bankgiro numbers (expecting: %s, found: %s) on line %s",
                $this->payeeBg,
                (string)$node->getValueFrom('Number'),
                (string)$node->getLineNr()
            );
        }
    }
public function beforePayeeBankgiro ( Node $ node ) : void { if ( ! $ this -> payeeBg ) { $ this -> payeeBg = ( string ) $ node -> getValueFrom ( 'Number' ) ; } if ( $ node -> getValueFrom ( 'Number' ) != $ this -> payeeBg ) { $ this -> getErrorObject ( ) -> addError ( "Non-matching payee bankgiro numbers (expecting: %s, found: %s) on line %s" , $ this -> payeeBg , ( string ) $ node -> getValueFrom ( 'Number' ) , ( string ) $ node -> getLineNr ( ) ) ; } }
Validate payee bankgiro number
Validate payee bankgiro number