public function setHolder(Holder $holder) { $this->holder = $holder; $bin = substr($holder->getCreditCardNumber(), 0, 6); if (!empty($bin)) { $this->setBin($bin); } }
public function testSetHolder_shouldBeSuccess_whenHolderHasToken() { $holder = new Holder('TuS6LeBHWjqFFtE7S3zR052Jl/KUlD+tYJFpAdlA87E='); $this->transaction->setHolder($holder); }