/**
  * @dataProvider getTestData
  */
 public function testWithSomeData($name, $value, $encrypt)
 {
     $extendedData = new ExtendedData();
     $extendedData->set($name, $value, $encrypt);
     $this->assertEquals($value, $extendedData->get($name));
     if ($encrypt) {
         $this->assertTrue($extendedData->isEncryptionRequired($name));
     } else {
         $this->assertFalse($extendedData->isEncryptionRequired($name));
     }
 }
 /**
  * @param \JMS\Payment\CoreBundle\Entity\ExtendedData $data
  *
  * @return string|null
  */
 public function getLogo(ExtendedData $data)
 {
     return $data->has('logo') ? $data->get('logo') : $this->logo;
 }
 /**
  * @param \JMS\Payment\CoreBundle\Entity\ExtendedData $data
  *
  * @return string|null
  */
 public function getBackUrl(ExtendedData $data)
 {
     return $data->has('backUrl') ? $data->get('backUrl') : $this->backUrl;
 }