vendor/elements/datatrans-payment-bundle/src/ElementsDatatransPaymentBundle.php line 8

Open in your IDE?
  1. <?php
  2. namespace Elements\Bundle\DatatransPaymentBundle;
  3. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  4. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  5. class ElementsDatatransPaymentBundle extends AbstractPimcoreBundle {
  6.     use PackageVersionTrait {
  7.         getVersion as protected packageVersion;
  8.     }
  9.     protected function getComposerPackageName() : string {
  10.         return 'elements/datatrans-payment-bundle';
  11.     }
  12.     /**
  13.      * @inheritDoc
  14.      */
  15.     public function getVersion() {
  16.         try {
  17.             // will throw up if not installed (only required if bundle is not used via composer)
  18.             return $this->packageVersion();
  19.         } catch( \Exception $ignored) {
  20.             return '';
  21.         }
  22.     }
  23.     /**
  24.      * @inheritDoc
  25.      */
  26.     public function getNiceName() {
  27.         return 'Elements Datatans Payment Bundle';
  28.     }
  29.     /**
  30.      * @inheritDoc
  31.      */
  32.     public function getDescription() {
  33.         return 'Integrates Datatrans into ECommerceFramework';
  34.     }
  35. }