-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MM-40: Test and fix import order functionality (#63)
- Loading branch information
1 parent
49b6550
commit a62f4b7
Showing
7 changed files
with
88 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
src/Marello/Bundle/PaymentBundle/Method/RemotePaymentMethod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace Marello\Bundle\PaymentBundle\Method; | ||
|
||
use Symfony\Component\Form\Extension\Core\Type\HiddenType; | ||
|
||
class RemotePaymentMethod implements PaymentMethodInterface | ||
{ | ||
/** @var string */ | ||
protected $identifier; | ||
|
||
/** | ||
* @param string $identifier | ||
*/ | ||
public function __construct(string $identifier) | ||
{ | ||
$this->identifier = $identifier; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function isEnabled() | ||
{ | ||
return false; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getIdentifier() | ||
{ | ||
return $this->identifier; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getLabel() | ||
{ | ||
return $this->identifier; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getOptionsConfigurationFormType() | ||
{ | ||
return HiddenType::class; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getSortOrder() | ||
{ | ||
return 0; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
public function getOptions() | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters