public function getTransformFromModelData()
 {
     return function ($data) {
         $encryption = EncryptionProvider::getEncryptionProvider();
         return $encryption->decrypt($data[$this->columnName], $this->columnName);
     };
 }
 protected function setUp()
 {
     parent::setUp();
     EncryptionProvider::SetEncryptionProviderClassName('\\Rhubarb\\Crown\\Encryption\\UnitTesting\\UnitTestingAes256EncryptionProvider');
 }
 public function __get($propertyName)
 {
     $keySalt = $this->getEncryptionKeySalt();
     $provider = EncryptionProvider::getEncryptionProvider();
     return $provider->decrypt(parent::__get($propertyName), $keySalt);
 }
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     EncryptionProvider::setEncryptionProviderClassName(self::$oldEncryptionProvider);
 }